commandFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 70475 by Str_bi_wiki on 2013-03-25T10:46:07Z)
m (Some wiki formatting)
 
(51 intermediate revisions by 3 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]], [[FSM_Editor_Manual]], [[execFSM]], [[completedFSM]], [[doFSM]], [[getFSMVariable]], [[setFSMVariable]]  |= 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}}}}]]
[[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