commandFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(updated)
m (Some wiki formatting)
 
(61 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


|1.00|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Orders a unit to process command defined by [[FSM]] file (via the radio). |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


|unitName '''commandFSM''' [fsm name, position, target] |= Syntax
|game4= tkoh
|version4= 1.00


|p1= unitName: [[Object]] or [[Array]] |= Parameter 1
|game5= arma3
|version5= 0.50


|p2= [fsm name, position, target]: [[Array]] |= Parameter 2
|gr1= Unit Control


| [[Nothing]] |= Return value
|descr= Orders a unit to process command defined by [[FSM]] file (''via'' the radio).
____________________________________________________________________________________________
 
|x1= <pre>_soldierOne commandFSM ["move.fsm", position player, player]</pre> |= Example 1
____________________________________________________________________________________________


| [[FSM]] |= See also
|s1= unitName [[commandFSM]] [fsmFile, position, target]


}}
|p1= unitName: [[Object]] or [[Array]]
 
|p2= fsmFile: [[String]]
 
|p3= position: [[Array]] format [[Position]]


<h3 style="display:none">Notes</h3>
|p4= target: [[Object]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_soldierOne commandFSM ["move.fsm", position player, player];</sqf>


[[Category:Scripting Commands|COMMANDFSM]]
|seealso= [[FSM]] [[FSM_Editor_Manual]] [[execFSM]] [[completedFSM]] [[doFSM]] [[getFSMVariable]] [[setFSMVariable]]
[[Category:Scripting Commands ArmA|COMMANDFSM]]
}}
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Program_Flow|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00: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