Manages variable declarations. A variable declaration consists of a variable name and an associated variable fourcc code.
- Command Input:
s(VariableName), s(VariableFourCC)
- Command Output:
i(VariableHandle)
- Command Description:
- Add a new variable declaration. Declaring variables is not required but the only way to get variables with both a valid name and a valid fourcc code.
Returns the variable's handle.
- Command Input:
v
- Command Output:
i(NumVariables)
- Command Description:
- Get number of variable declarations.
- Command Input:
i(VariableIndex)
- Command Output:
s(VariableName), s(VariableFourCC)
- Command Description:
- Return the variable name and fourcc code at given index.
- Command Input:
s(VarName)
- Command Output:
f(Value)
- Command Description:
- Get float value from a global variable.
- Command Input:
s(VarName)
- Command Output:
i(Value)
- Command Description:
- Get integer value from a global variable.
- Command Input:
s(VarName)
- Command Output:
ffff(Value)
- Command Description:
- Get vector4 value from a global variable.
- Command Input:
s(VarName)
- Command Output:
s(Value)
- Command Description:
- Get string value from a global variable.
- Command Input:
s(VarName), f(Value)
- Command Output:
v
- Command Description:
- Set float value of a global variable.
- Command Input:
s(VarName), i(Value)
- Command Output:
v
- Command Description:
- Set integer value of a global variable.
- Command Input:
s(VarName), f(ValX), f(ValY), f(ValZ), f(ValW)
- Command Output:
v
- Command Description:
- Set vector value of a global variable.
- Command Input:
s(VarName), s(Value)
- Command Output:
v
- Command Description:
- Set string value of a global variable.