Arma 3 Scripting

Command in Variables

getFSMVariable

Also available as Markdown and JSON, or read the original wiki page.

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:

Returns: Anything

Examples

Example 1

_handle getFSMVariable "_foo";

Example 2

_handle getFSMVariable ["_foo", 123];

See also

FSM · commandFSM · completedFSM · doFSM · execFSM · setFSMVariable