Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.00

Description

Description:

Returns the value of a variable, used in a currently active FSM.

It is enough for the variable to be defined in the FSM itself - it does not have to be set by setFSMVariable (even though that method can be used as well).

Syntax

Syntax:handle getFSMVariable name
Parameters:
  • handle: Number - FSM handle, as returned by execFSM.
  • name: String - Name of variable, used in FSM.
Return Value:Anything - Value, as set either inside the FSM, or using setFSMVariable. If the variable does not exist, or the FSM has completed, the returned value is isNil.

Examples

Examples:
_hdl = [] execFSM "custom.fsm";
_val = _hdl getFSMVariable "_target";

Additional Information

See also: setFSMVariable
Multiplayer: 
Problems: 

Notes