checkAIFeature: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2 | | | arma2 |Game name= | ||
|1.05|Game version= | |1.05|Game version= |
Revision as of 03:55, 31 August 2019
Description
- Description:
- Checks if the given AI feature is currently enabled. Feature may be one of:
- "AwareFormationSoft"
- "CombatFormationSoft"
- Groups:
- Uncategorised
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