execFSM
Hover & click on the images for descriptions
Description
- Description:
- Executes scripted FSM and returns the FSM handle or 0 when failed. The FSM file is first searched in the mission folder, then in the campaign scripts folder and finally in the global scripts folder. Argument (if any) are available in _this variable inside FSM. In Arma 3 FSM handle is also available in _thisFSM variable.
Syntax
- Syntax:
- arguments execFSM filename
- Parameters:
- arguments: Anything - Arguments accessible as _this in the FSM
- filename: String - file with FSM code
- Return Value:
- Number - FSM handle, can be used to determine (via completedFSM) when the execed FSM has finished. In Arma 3, the handle is also available inside the FSM in _thisFSM variable.
Alternative Syntax
- Syntax:
- execFSM filename
- Parameters:
- filename: String - file with FSM code String
- Return Value:
- Number - FSM handle, can be used to determine (via completedFSM) when the execed FSM has finished. In Arma 3, the handle is also available inside the FSM in _thisFSM variable.
Examples
- Example 1:
-
_id = player execFSM "test.fsm";
- Example 2:
-
_handle = [_a, _b, _c] execFSM "test.fsm";
- Example 3:
-
_handle = execFSM "test.fsm";
Additional Information
- See also:
- FSMFSM Editor ManualexecVMcallspawnexeccommandFSMcompletedFSMdoFSMgetFSMVariablesetFSMVariable
- Groups:
- Uncategorised
Notes
Notes
Bottom Section
Categories:
- Pages using duplicate arguments in template calls
- Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: New Scripting Commands
- Command Group: Uncategorised
- Introduced with Arma 2 version 1.00
- ArmA 2: New Scripting Commands List
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters