BIS fnc execFSM: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s1= +" to "|s1= ") |
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])= ([^ ]+) (\[\[call\]\]) ([^ ]+) " to "|s$1= $2 call $4 ") |
||
Line 8: | Line 8: | ||
|descr= Execute the scripted FSM. Shell for [[execFSM]] command | |descr= Execute the scripted FSM. Shell for [[execFSM]] command | ||
|s1= filename | |s1= filename call [[BIS_fnc_execFSM]] | ||
|p1= filename: [[String]] - [[FSM]] filename | |p1= filename: [[String]] - [[FSM]] filename | ||
Line 14: | Line 14: | ||
|r1= [[Number]] - [[FSM]] handle | |r1= [[Number]] - [[FSM]] handle | ||
|s2= [params, filename] | |s2= [params, filename] call [[BIS_fnc_execFSM]]; | ||
|p21= params: [[Array]] - parameters are passed to script as variable [[Magic Variables#this|_this]] | |p21= params: [[Array]] - parameters are passed to script as variable [[Magic Variables#this|_this]] |
Revision as of 18:18, 20 June 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