BIS fnc execFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s1= +" to "|s1= ")
m (Fix SQF)
 
(12 intermediate revisions by the same user not shown)
Line 8: Line 8:
|descr= Execute the scripted FSM. Shell for [[execFSM]] command
|descr= Execute the scripted FSM. Shell for [[execFSM]] command


|s1= filename [[call]] [[BIS_fnc_execFSM]]
|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] [[call]] [[BIS_fnc_execFSM]];
|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]]
|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= <code>_handle = <nowiki>[[</nowiki>_param1, _param2, ''etc..''], "test.fsm"] [[call]] [[BIS_fnc_execFSM]];</code>
|x1= <sqf>private _handle = [[_param1, _param2, _param3 /* etc */], "test.fsm"] call BIS_fnc_execFSM;</sqf>
 
|x2= <code>_handle = "test.fsm" [[call]] [[BIS_fnc_execFSM]];</code>


|exec= call
|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]]
}}
}}

Latest revision as of 16:34, 1 November 2022

Hover & click on the images for description

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, _param3 /* etc */], "test.fsm"] call BIS_fnc_execFSM;
Example 2:
private _handle = "test.fsm" call BIS_fnc_execFSM;

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