$declaresequence: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(minor cleanup and info)
Line 1: Line 1:
Forward declares a sequence. This useful when you want to reference a sequence that isn't locally declared for some reason, such as one that's part of an external .mdl file (with <code>[[$includemodel]]</code>).
Forward declares a sequence.


== Usage ==
This is useful when you want to add other sequences as layers that aren't locally declared, such as when they're actually part of an external .mdl file (see [[$includemodel]]). $declaresequence makes a empty sequence entry so that the local sequence pointers can get set, and at run time these references are overwritten with the actual sequence index.


$declaresequence <name>
== Syntax ==


[[Category:QC Commands|D]]
$declaresequence (name)
 
[[Category:QC Commands|declaresequence]]

Revision as of 16:51, 28 April 2008

Forward declares a sequence.

This is useful when you want to add other sequences as layers that aren't locally declared, such as when they're actually part of an external .mdl file (see $includemodel). $declaresequence makes a empty sequence entry so that the local sequence pointers can get set, and at run time these references are overwritten with the actual sequence index.

Syntax

$declaresequence (name)