BIS fnc execFSM: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Program Flow | |gr1 = Program Flow | ||
| Execute the scripted FSM. Shell for [[execFSM]] command | | Execute the scripted FSM. Shell for [[execFSM]] command | ||
| filename [[call]] '''BIS_fnc_execFSM'''; | | filename [[call]] '''BIS_fnc_execFSM'''; | ||
|p1= filename: [[String]] - [[FSM]] filename | |p1= filename: [[String]] - [[FSM]] filename | ||
| [[Number]] - [[FSM]] handle | | [[Number]] - [[FSM]] handle | ||
|s2= [params, filename] [[call]] '''BIS_fnc_execFSM'''; | |s2= [params, filename] [[call]] '''BIS_fnc_execFSM'''; | ||
|p21= params: [[Array]] - parameters are passed to script as variable [[_this]] |PARAMETER21= | |p21= params: [[Array]] - parameters are passed to script as variable [[_this]] |PARAMETER21= | ||
|p22= filename: [[FSM]] - [[FSM]] filename |PARAMETER22= | |p22= filename: [[FSM]] - [[FSM]] filename |PARAMETER22= | ||
|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>_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>_handle = "test.fsm" [[call]] [[BIS_fnc_execFSM]];</code> | ||
|exec= call |Execution= By (defaults to [[call]] if omitted) | |exec= call |Execution= By (defaults to [[call]] if omitted) | ||
| [[execFSM]], [[FSM]], [[BIS_fnc_execRemote]], [[BIS_fnc_execVM]], [[BIS_fnc_call]] | | [[execFSM]], [[FSM]], [[BIS_fnc_execRemote]], [[BIS_fnc_execVM]], [[BIS_fnc_call]] | ||
}} | }} |
Revision as of 23:04, 17 January 2021
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:
_handle = [[_param1, _param2, etc..], "test.fsm"] call BIS_fnc_execFSM;
- Example 2:
_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