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



Introduced in

Version:2.00

Description

Description:Sets the value of a variable used in a currently active FSM.

Syntax

Syntax:handle setFSMVariable [name,value]
Parameters:
  • handle: Number - FSM handle, as returned by execFSM.
  • name: String - Name of variable, as used in the FSM.
  • value: Anything - Value to be assigned to variable.
Return Value:Nothing

Examples

Examples:
_hdl = [] execFSM "custom.fsm";
_hdl setFSMVariable ["_target",soldier1];

Additional Information

See also: getFSMVariable
Multiplayer:
Problems:

Notes