BIS fnc execFSM: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ") |
||
Line 21: | Line 21: | ||
|r2= [[Number]] - FSM handle or '''0''' on error | |r2= [[Number]] - FSM handle or '''0''' on error | ||
|x1= <code>_handle = <nowiki>[[</nowiki>_param1, _param2, ''etc..''], "test.fsm"] [[call]] [[BIS_fnc_execFSM]];</code> | |x1= <code>[[private]] _handle = <nowiki>[[</nowiki>_param1, _param2, ''etc..''], "test.fsm"] [[call]] [[BIS_fnc_execFSM]];</code> | ||
|x2= <code>_handle = "test.fsm" [[call]] [[BIS_fnc_execFSM]];</code> | |x2= <code>[[private]] _handle = "test.fsm" [[call]] [[BIS_fnc_execFSM]];</code> | ||
|exec= call | |exec= call |
Revision as of 12:06, 6 May 2022
Description
- Description:
- Execute the scripted FSM. Shell for execFSM command
- Execution:
- call
- Groups:
- Program Flow
Syntax
- Syntax:
- filename call BIS_fnc_execFSM
- Parameters:
- filename: String - FSM filename
- Return Value:
- Number - FSM handle
Alternative Syntax
- Syntax:
- [params, filename] call BIS_fnc_execFSM;
- Parameters:
- params: Array - parameters are passed to script as variable _this
- filename: FSM - FSM filename
- Return Value:
- Number - FSM handle or 0 on error
Examples
- Example 1:
private _handle = [[_param1, _param2, etc..], "test.fsm"] call BIS_fnc_execFSM;
- Example 2:
private _handle = "test.fsm" call BIS_fnc_execFSM;
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note