Description
Return the value of variable in the variable space of given FSM. The FSM handle is the number returned by the execFSM command.
Syntax
Syntax 1
FSMhandle getFSMVariable name
Parameters:
Returns: Anything
Syntax 2
since arma3 1.68
FSMhandle getFSMVariable [name, defaultValue]
Parameters:
FSMhandle: Numbername: String - name of the variabledefaultValue: Anything - value to return if variable is nil
Returns: Anything
Examples
Example 1
_handle getFSMVariable "_foo";
Example 2
_handle getFSMVariable ["_foo", 123];
See also
FSM · commandFSM · completedFSM · doFSM · execFSM · setFSMVariable