BIS fnc execFSM: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Program Flow |GROUP1= | |gr1 = Program Flow |GROUP1= | ||
| Execute the scripted FSM. Shell for [[execFSM]] command |DESCRIPTION= | | Execute the scripted FSM. Shell for [[execFSM]] command |DESCRIPTION= | ||
| filename [[call]] '''BIS_fnc_execFSM'''; |SYNTAX= | | filename [[call]] '''BIS_fnc_execFSM'''; |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Number]] - [[FSM]] handle |RETURNVALUE= | | [[Number]] - [[FSM]] handle |RETURNVALUE= | ||
|s2= [params, filename] [[call]] '''BIS_fnc_execFSM'''; |SYNTAX2= | |s2= [params, filename] [[call]] '''BIS_fnc_execFSM'''; |SYNTAX2= | ||
Line 25: | Line 21: | ||
|r2= [[Number]] - FSM handle or '''0''' on error |RETURNVALUE2= | |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> |EXAMPLE2= | |x2= <code>_handle = "test.fsm" [[call]] [[BIS_fnc_execFSM]];</code> |EXAMPLE2= | ||
|exec= call |Execution= By (defaults to [[call]] if omitted) | |exec= call |Execution= By (defaults to [[call]] if omitted) |
Revision as of 23:13, 16 January 2021
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
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