Master85
If the variable is not yet defined within the FSM it will be created.
Results appear below as you type; use the arrow keys to move through them.
Set variable to given value in the variable space of given FSM.
The FSM handle is the number returned by the execFSM command.
handle setFSMVariable [name, value]
Parameters:
handle: Number - FSM handlename: String - name of the FSM variablevalue: Anything - new value of the FSM variableReturns: Nothing
_handle = execFSM "test.fsm";
_handle setFSMVariable ["_foo", 23]; // sets variable _foo in the FSM to 23
FSM · commandFSM · completedFSM · doFSM · execFSM · getFSMVariable
If the variable is not yet defined within the FSM it will be created.