BIS fnc execFSM: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \|s([0-9]) *= *([^ ]+); * " to " |s$1= $2 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 17: | Line 17: | ||
|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]] | ||
|p22= filename: [[FSM]] - [[FSM]] filename | |p22= filename: [[FSM]] - [[FSM]] filename | ||
|r2= [[Number]] - FSM handle or '''0''' on error | |r2= [[Number]] - FSM handle or '''0''' on error | ||
|x1= < | |x1= <sqf>private _handle = [[_param1, _param2, etc..], "test.fsm"] call BIS_fnc_execFSM;</sqf> | ||
|x2= <sqf>private _handle = "test.fsm" call BIS_fnc_execFSM;</sqf> | |x2= <sqf>private _handle = "test.fsm" call BIS_fnc_execFSM;</sqf> | ||
|seealso= [[execFSM]] [[FSM]] [[BIS_fnc_execRemote]] [[BIS_fnc_execVM]] [[BIS_fnc_call]] | |seealso= [[execFSM]] [[FSM]] [[BIS_fnc_execRemote]] [[BIS_fnc_execVM]] [[BIS_fnc_call]] | ||
}} | }} |
Revision as of 16:17, 13 July 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:
- Example 2:
Additional Information
- See also:
- execFSM FSM BIS_fnc_execRemote BIS_fnc_execVM BIS_fnc_call
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