Arma 3 Scripting

Command in AI Behaviour

getUnitState

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

Description

Returns current state of the given AI unit, which could be one of the following:

Syntax

getUnitState unit

Parameters:

Returns: String - unit state (see description)

Examples

Example 1

_state = getUnitState bob; //"WAIT"

See also

disableAI · enableAI · checkAIFeature · enableAIFeature · vehicleMoveInfo · expectedDestination