commandFSM: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "''via''" to "via")
mNo edit summary
 
Line 22: Line 22:
|s1= unitName [[commandFSM]] [fsmFile, position, target]
|s1= unitName [[commandFSM]] [fsmFile, position, target]


|p1= unitName: [[Object]] or [[Array]]
|p1= unitName: [[Object]] or [[Array]] of [[Object]]s


|p2= fsmFile: [[String]]
|p2= fsmFile: [[String]]


|p3= position: [[Array]] format [[Position]]
|p3= position: [[Position]]


|p4= target: [[Object]]
|p4= target: [[Object]]

Latest revision as of 11:51, 1 January 2026

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 of Objects
fsmFile: String
position: 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.
Only post proven facts here! Add Note