BIS fnc execFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Fix SQF)
 
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Program Flow


|1.00|= Game version
|descr= Execute the scripted FSM. Shell for [[execFSM]] command
____________________________________________________________________________________________


| ''N/A'' |= Description
|s1= filename call [[BIS_fnc_execFSM]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_execFSM]]; --> |= Syntax
|p1= filename: [[String]] - [[FSM]] filename


|p1= |= Parameter 1
|r1= [[Number]] - [[FSM]] handle


| |= Return value
|s2= [params, filename] call [[BIS_fnc_execFSM]]
____________________________________________________________________________________________


|x1= <code>[_params,_fsm] call [[BIS_fnc_execFSM]]</code> |=
|p21= params: [[Array]] - parameters are passed to script as variable [[Magic Variables#this|_this]]
|x2= <code>[_fsm] call [[BIS_fnc_execFSM]]</code> |=
____________________________________________________________________________________________


| [[BIS_fnc_execRemote]], [[BIS_fnc_execVM]], [[BIS_fnc_spawn]] |= See also
|p22= filename: [[FSM]] - [[FSM]] filename


}}
|r2= [[Number]] - FSM handle or '''0''' on error


<h3 style="display:none">Notes</h3>
|x1= <sqf>private _handle = [[_param1, _param2, _param3 /* etc */], "test.fsm"] call BIS_fnc_execFSM;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= <sqf>private _handle = "test.fsm" call BIS_fnc_execFSM;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[execFSM]] [[FSM]] [[BIS_fnc_execRemote]] [[BIS_fnc_execVM]] [[BIS_fnc_call]]
[[Category:Function Group: MP|{{uc:execFSM}}]]
}}
[[Category:Functions|{{uc:execFSM}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:execFSM}}]]

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