BIS fnc execFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1 = Program Flow |GROUP1=
|gr1 = Program Flow


| Execute the scripted FSM. Shell for [[execFSM]] command |DESCRIPTION=
| Execute the scripted FSM. Shell for [[execFSM]] command


| filename [[call]] '''BIS_fnc_execFSM'''; |SYNTAX=
| filename [[call]] '''BIS_fnc_execFSM''';


|p1= filename: [[String]] - [[FSM]] filename |PARAMETER1=
|p1= filename: [[String]] - [[FSM]] filename


| [[Number]] - [[FSM]] handle |RETURNVALUE=
| [[Number]] - [[FSM]] handle


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


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


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


|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>


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


|exec= call |Execution= By (defaults to [[call]] if omitted)
|exec= call |Execution= By (defaults to [[call]] if omitted)


| [[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 00:04, 18 January 2021

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:
_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


Bottom Section