commandFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game name=" to "|Game name= |gr1= Program Flow |GROUP1= ")
m (Some wiki formatting)
 
(42 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma |Game name=
|game1= arma1
|version1= 1.00


|gr1= Program Flow |GROUP1=
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


|game4= tkoh
|version4= 1.00


|gr1= Groups |GROUP1=
|game5= arma3
|version5= 0.50


|gr1= Unit Control


|descr= Orders a unit to process command defined by [[FSM]] file (''via'' the radio).


|1.00|Game version=
|s1= unitName [[commandFSM]] [fsmFile, position, target]
____________________________________________________________________________________________


| Orders a unit to process command defined by [[FSM]] file (via the radio). |DESCRIPTION=
|p1= unitName: [[Object]] or [[Array]]
____________________________________________________________________________________________


|unitName '''commandFSM''' [fsm name, position, target] |SYNTAX=
|p2= fsmFile: [[String]]


|p1= unitName: [[Object]] or [[Array]] |PARAMETER1=
|p3= position: [[Array]] format [[Position]]


|p2= [fsm name, position, target]: [[Array]] |PARAMETER2=
|p4= target: [[Object]]


| [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]
____________________________________________________________________________________________
 
|x1= <pre>_soldierOne commandFSM ["move.fsm", position player, player]</pre> |EXAMPLE1=
____________________________________________________________________________________________


| [[FSM]], [[FSM_Editor_Manual]], [[execFSM]], [[completedFSM]], [[doFSM]], [[getFSMVariable]], [[setFSMVariable]] |SEEALSO=
|x1= <sqf>_soldierOne commandFSM ["move.fsm", position player, player];</sqf>


|seealso= [[FSM]] [[FSM_Editor_Manual]] [[execFSM]] [[completedFSM]] [[doFSM]] [[getFSMVariable]] [[setFSMVariable]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|COMMANDFSM]]
[[Category:Scripting Commands Armed Assault|COMMANDFSM]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Program_Flow|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 01:02, 8 August 2022

Hover & click on the images for description

Description

Description:
Orders a unit to process command defined by FSM file (via the radio).
Groups:
Unit Control

Syntax

Syntax:
unitName commandFSM [fsmFile, position, target]
Parameters:
unitName: Object or Array
fsmFile: String
position: Array format Position
target: Object
Return Value:
Nothing

Examples

Example 1:
_soldierOne commandFSM ["move.fsm", position player, player];

Additional Information

See also:
FSM FSM_Editor_Manual execFSM completedFSM doFSM getFSMVariable setFSMVariable

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