$definevariable

From Valve Developer Community
Revision as of 08:13, 1 March 2011 by TomEdwards (talk | contribs)
Jump to navigation Jump to search

$definevariable is a QC command that creates a variable. The variable's name, if surrounded by $s, will be substituted by its value whenever encountered.

Note.pngNote:Variables do not work within "quote blocks"!

This command is a 'lite' version of $definemacro.

Example

$definevariable baseFile "fighter1"

$sequence attack $baseFile$_Attack
$sequence run $baseFile$_Run
$sequence idle $baseFile$_Idle