$definevariable

From Valve Developer Community
Revision as of 14:38, 28 April 2008 by JeffLane (talk | contribs) ($definevariable)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creates a named string variable. This is tiny subset version of $definemacro that only defines a string substitution that can be in other QC commands.

Syntax

$definevariable (variablename) (string)

Examples

$definevariable baseFile "fighter1"

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