Description
Enables/disables given AI feature.
Syntax
Syntax 1
feature enableAIFeature enable
Parameters:
feature: String - can be:"AwareFormationSoft""CombatFormationSoft"
enable: Boolean - true to enable, false to disable
Returns: Nothing
Syntax 2
since arma3 1.96
unit enableAIFeature [feature, enable]
Parameters:
unit: Object - unit to test AI feature forfeature: String - see disableAI / enableAI for possible valuesenable: Boolean - true to enable, false to disable
Returns: Nothing
Examples
Example 1
"AwareFormationSoft" enableAIFeature true;
Example 2
bob enableAIFeature ["AUTOTARGET", false];
See also
checkAIFeature · enableAI · disableAI · getUnitState · disableRemoteSensors · vehicleMoveInfo