checkAIFeature: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
mNo edit summary
Line 5: Line 5:


|1.05|Game version=
|1.05|Game version=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 22:04, 22 September 2020

Hover & click on the images for description

Description

Description:
Checks if the given AI feature is currently enabled. Feature may be one of:
  • "AwareFormationSoft"
  • "CombatFormationSoft"
Since Arma 3 v1.95.145843 this command also supports disableAI / enableAI feature set via an alternative syntax.
Groups:
Object Manipulation

Syntax

Syntax:
checkAIFeature feature
Parameters:
feature: String (see description)
Return Value:
Boolean - true if is enabled

Alternative Syntax

Syntax:
unit checkAIFeature feature        (Since Arma 3 v1.95.145843)
Parameters:
unit: Object - unit to test AI feature for
feature: String - disableAI / enableAI feature
Return Value:
Boolean - true if is enabled

Examples

Example 1:
_featureUsed = checkAIFeature "AwareFormationSoft";
Example 2:
_autotargetOn = bob checkAIFeature "AUTOTARGET";

Additional Information

See also:
enableAIFeatureenableAIdisableAI

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section