Arma 3 Scripting

Command in AI Behaviour

checkAIFeature

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

Description

Checks if the given AI feature is currently enabled.

Syntax

Syntax 1

checkAIFeature feature

Parameters:

Returns: Boolean - true if is enabled

Syntax 2

since arma3 1.96

unit checkAIFeature feature

Parameters:

Returns: Boolean - true if is enabled

Examples

Example 1

_featureUsed = checkAIFeature "AwareFormationSoft";

Example 2

_autotargetOn = bob checkAIFeature "AUTOTARGET";

See also

enableAIFeature · enableAI · getUnitState · disableAI