enableAIFeature: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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. Feature may be one of:
|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>  


{{Feature|arma3 | Since Arma 3 v1.95.145843 this command also supports [[disableAI]] / [[enableAI]] feature set via an alternative syntax.}}
|p2= enable: [[Boolean]] - [[true|True]] to enable, [[false]] to disable


| feature '''enableAIFeature''' enable
|r1= [[Nothing]]


|p1= feature: [[String]] (see description)
|s2= unit '''enableAIFeature''' [feature, enable] {{Since|arma3|1.96|y}}


|p2= enable: [[Boolean]] - [[true]] to enable, [[false]] - to disable
|p21= unit: [[Object]] - Unit to test AI feature for


| [[Nothing]]
|p22= feature: [[String]] - See [[disableAI]] / [[enableAI]] for possible values


|s2= unit '''enableAIFeature''' [feature, enable] {{Since|arma3|1.95.145843|true}}
|p23= enabled: [[Boolean]] - [[true|True]] to enable, [[false]] to disable


|p21= unit: [[Object]] - unit to test AI feature for
|r2= [[Nothing]]


|p22= [feature, enable]: [[Array]]
|x1 = <code>"AwareFormationSoft" [[enableAIFeature]] [[true]];</code>
 
|p23= feature: [[String]] - [[disableAI]] / [[enableAI]] feature
 
|p24= enabled: [[Boolean]] - [[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]]
}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 01:15, 30 March 2021

Hover & click on the images for description

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

See also:
checkAIFeatureenableAIdisableAIdisableRemoteSensorsvehicleMoveInfo

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