Arma 3 Scripting

Command in Unit Control

doFSM

Also available as Markdown and JSON, or read the original wiki page.

Description

Orders a unit to process command defined by FSM file (silently).

Unlike with execFSM where _this is passed to the FSM, the following parameters are passed when using doFSM/commandFSM:

_leader: leader of subgroup with this command _destination: command destination/position _target: command target _units: list of all persons in subgroup

Syntax

unit doFSM [fsmName, position, target]

Parameters:

Returns: Nothing

Examples

Example 1

_soldierOne doFSM ["move.fsm", position player, player];

Example 2

units player doFSM ["move.fsm", position player, player];

See also

FSM · FSM Editor Manual · commandFSM · completedFSM · execFSM · getFSMVariable · setFSMVariable · unitReady