commandFSM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "")
m (Some wiki formatting)
 
(37 intermediate revisions by 2 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


|gr1= Unit Control |GROUP1=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| Orders a unit to process command defined by [[FSM]] file (via the radio). |DESCRIPTION=
|game4= tkoh
____________________________________________________________________________________________
|version4= 1.00


|unitName '''commandFSM''' [fsm name, position, target] |SYNTAX=
|game5= arma3
|version5= 0.50


|p1= unitName: [[Object]] or [[Array]] |PARAMETER1=
|gr1= Unit Control


|p2= [fsm name, position, target]: [[Array]] |PARAMETER2=
|descr= Orders a unit to process command defined by [[FSM]] file (''via'' the radio).


| [[Nothing]] |RETURNVALUE=
|s1= unitName [[commandFSM]] [fsmFile, position, target]
____________________________________________________________________________________________
 
|x1= <code>_soldierOne [[commandFSM]] ["move.fsm", [[position]] [[player]], [[player]]]</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[FSM]], [[FSM_Editor_Manual]], [[execFSM]], [[completedFSM]], [[doFSM]], [[getFSMVariable]], [[setFSMVariable]]  |SEEALSO=
|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 Armed Assault|COMMANDFSM]]
}}
[[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