This is an old revision of the document!
⇐ Index
$VAR:VAL
Input variables must start with a $ sign and be placed before any of the actual code in a script. They define a variable named VAR with a default value of VAL which may be of type int, float or string. Input variables will show up in a unit's Script Settings when selected in the editor, this allows the value to be changed with the editor at any moment in time.
Input variables are created at the same time as the unit itself (even if the game is paused and the script hasn't executed once) and assigned either the default value VAL, or a value specified in the editor through the Script Settings.
# input vars go at the top of a script, before the actual code $amt:1 $text:"abc" $e:2.71828 SetCreeper(10 10 <-amt)