Arma 3 Scripting

Command in AI Behaviour

enableAI

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

Description

Enables parts of the AI behavior that was disabled by disableAI.

Important

When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it _unit enableAI "TeamSwitch"; so that the unit continues with waypoints.

Note

Arma 3: Since Arma 3 v1.96 it is possible to return the state of the given AI flag via checkAIFeature or set it using alias command enableAIFeature.

Syntax

unit enableAI skilltype

Parameters:

Returns: Nothing

Examples

Example 1

_soldierOne enableAI "Move";

See also

disableAI · checkAIFeature · enableAIFeature · vehicleMoveInfo · getUnitState