enableAIFeature: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
m (formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|1.05 | |version1= 1.05 | ||
|game2= arma2oa | |||
|version2= 1.51 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= System | |gr1= System | ||
Line 9: | Line 21: | ||
|gr2= Unit Control | |gr2= Unit Control | ||
| Enables/disables given AI feature. | |descr= Enables/disables given AI feature. | ||
|s1= feature '''enableAIFeature''' enable | |||
|p1= feature: [[String]] - Can be: | |||
* <tt>"AwareFormationSoft"</tt> | * <tt>"AwareFormationSoft"</tt> | ||
* <tt>"CombatFormationSoft"</tt> | * <tt>"CombatFormationSoft"</tt> | ||
|p2= enable: [[Boolean]] - [[true|True]] to enable, [[false]] to disable | |||
| | |r1= [[Nothing]] | ||
| | |s2= unit '''enableAIFeature''' [feature, enable] {{Since|arma3|1.96|y}} | ||
| | |p21= unit: [[Object]] - Unit to test AI feature for | ||
| [[ | |p22= feature: [[String]] - See [[disableAI]] / [[enableAI]] for possible values | ||
| | |p23= enabled: [[Boolean]] - [[true|True]] to enable, [[false]] to disable | ||
| | |r2= [[Nothing]] | ||
| | |x1 = <code>"AwareFormationSoft" [[enableAIFeature]] [[true]];</code> | ||
|x2 = <code>bob [[enableAIFeature]] ["AUTOTARGET", [[false]]];</code> | |x2 = <code>bob [[enableAIFeature]] ["AUTOTARGET", [[false]]];</code> | ||
|seealso= [[checkAIFeature]], [[enableAI]], [[disableAI]], [[disableRemoteSensors]], [[vehicleMoveInfo]] | |seealso= [[checkAIFeature]], [[enableAI]], [[disableAI]], [[disableRemoteSensors]], [[vehicleMoveInfo]] | ||
}} | }} | ||
Revision as of 00:15, 30 March 2021
Description
- Description:
- Enables/disables given AI feature.
- Groups:
- SystemUnit Control
Syntax
- Syntax:
- feature enableAIFeature enable
- Parameters:
- feature: String - Can be:
- "AwareFormationSoft"
- "CombatFormationSoft"
- enable: Boolean - True to enable, false to disable
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- unit enableAIFeature [feature, enable] Template:Since
- Parameters:
- unit: Object - Unit to test AI feature for
- feature: String - See disableAI / enableAI for possible values
- enabled: Boolean - True to enable, false to disable
- Return Value:
- Nothing
Examples
- Example 1:
"AwareFormationSoft" enableAIFeature true;
- Example 2:
bob enableAIFeature ["AUTOTARGET", false];
Additional Information
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