$declareanimation: Difference between revisions
Jump to navigation
Jump to search
Note:Since the data doesn't actually exist in the current .mdl, some care needs to be taken when using this. You can't do any operations on the animation - such as subtract, etc., or it's possible the model compiler will crash.
Bug:Does not function/compile in any known version of studiomdl.
(Unfinished command. Tested in multiple versions of studiomdl from Source 2013 to Portal 2) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{This is a|name=$declareanimation|QC command}}. It forward declares an animation. This useful when you want to use an animation in a sequence, but the data for it won't be loaded until a later external .mdl file (see [[$includemodel]]). <code>$declareanimation</code> makes a empty animation entry so that the local sequence can reference something, and at run time these references are overwritten with the actual animation index. | |||
{{note|Since the data doesn't actually exist in the current .mdl, some care needs to be taken when using this. You can't do any operations on the animation - such as subtract, etc., or it's possible the model compiler will crash.}} | {{note|Since the data doesn't actually exist in the current .mdl, some care needs to be taken when using this. You can't do any operations on the animation - such as subtract, etc., or it's possible the model compiler will crash.}} | ||
{{bug|Does not function/compile in any known version of studiomdl.}} | {{bug|hidetested=1|Does not function/compile in any known version of studiomdl.}} | ||
== Syntax == | == Syntax == | ||
Line 9: | Line 9: | ||
$declareanimation <name> | $declareanimation <name> | ||
__NOTOC__ |
Latest revision as of 21:30, 16 July 2025
$declareanimation
is a QC command available in all Source games.. It forward declares an animation. This useful when you want to use an animation in a sequence, but the data for it won't be loaded until a later external .mdl file (see $includemodel).
$declareanimation
makes a empty animation entry so that the local sequence can reference something, and at run time these references are overwritten with the actual animation index.


Syntax
$declareanimation <name>