BIS fnc execFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=")
mNo edit summary
Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= [params, filename] [[call]] '''BIS_fnc_execFSM'''; |=  
|s2= [params, filename] [[call]] '''BIS_fnc_execFSM'''; |SYNTAX2=  


|p21= params: [[Array]] - parameters are passed to script as variable [[_this]] |PARAMETER2= 1
|p21= params: [[Array]] - parameters are passed to script as variable [[_this]] |PARAMETER21=
|p22= filename: [[FSM]] - [[FSM]] filename |PARAMETER2= 2
|p22= filename: [[FSM]] - [[FSM]] filename |PARAMETER22=


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


|x1= <code>_handle = <nowiki>[[</nowiki>_param1, _param2, ''etc..''], "test.fsm"] [[call]] [[BIS_fnc_execFSM]];</code> |Example1=
|x1= <code>_handle = <nowiki>[[</nowiki>_param1, _param2, ''etc..''], "test.fsm"] [[call]] [[BIS_fnc_execFSM]];</code> |Example1=


|x2= <code>_handle = "test.fsm" [[call]] [[BIS_fnc_execFSM]];</code> |=  
|x2= <code>_handle = "test.fsm" [[call]] [[BIS_fnc_execFSM]];</code> |EXAMPLE2=  
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 08:21, 25 September 2020

Hover & click on the images for description

Description

Description:
Execute the scripted FSM. Shell for execFSM command
Execution:
call
Groups:
Uncategorised

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

See also:
execFSMFSMBIS_fnc_execRemoteBIS_fnc_execVMBIS_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

Notes

Bottom Section