enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| arma1 \|1.00 \|([^g]|g[^a])" to "| ofpe | 1.00 |game2= arma1 |version2= 1.00 |game3= arma2 |version3= 1.00 |game4= arma2oa |version4= 1.50 |game5= tkoh |version5= 1.00 |game6= arma3 |version6= 0.50 |$1")
m (Some wiki formatting)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofpe
|game1= ofpe
| 1.00
|version1= 1.00


|game2= arma1
|game2= arma1
Line 23: Line 23:
|eff= global
|eff= global


|gr1= Object Manipulation
|gr1= AI Behaviour


|gr2= Unit Control
|descr= Enables parts of the AI behavior that was disabled by [[disableAI]].
{{Feature|important|When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it <sqf inline>_unit enableAI "TeamSwitch";</sqf> so that the unit continues with [[waypoints]].}}
{{Feature|arma3|Since Arma 3 v1.96 it is possible to return the state of the given AI flag via [[checkAIFeature]] or set it using alias command [[enableAIFeature]].}}


| Enables parts of the AI behavior that was disabled by [[disableAI]].
|s1= unit [[enableAI]] skilltype
{{Feature | important |When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it <tt>_unit [[enableAI]] "TeamSwitch"</tt> so that the unit continues with [[waypoints]] }}
{{Feature|arma3 | Since Arma 3 v1.96 it is possible to return the state of the given AI flag via [[checkAIFeature]] or set it using alias command [[enableAIFeature]]}}
 
| unit '''enableAI''' skilltype


|p1= unit: [[Object]]
|p1= unit: [[Object]]


|p2= skilltype: [[String]] - See [[disableAI]] for possible values.
|p2= skilltype: [[String]] - see [[disableAI]] for possible values.


|r1=[[Nothing]]
|r1= [[Nothing]]


|x1= <code>_soldierOne [[enableAI]] "Move";</code>
|x1= <sqf>_soldierOne enableAI "Move";</sqf>


|seealso= [[disableAI]], [[checkAIFeature]], [[enableAIFeature]], [[vehicleMoveInfo]]
|seealso= [[disableAI]] [[checkAIFeature]] [[enableAIFeature]] [[vehicleMoveInfo]]
}}
}}
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 17:40, 27 July 2023

Hover & click on the images for description

Description

Description:
Enables parts of the AI behavior that was disabled by disableAI.
When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it _unit enableAI "TeamSwitch"; so that the unit continues with waypoints.
Arma 3
Since Arma 3 v1.96 it is possible to return the state of the given AI flag via checkAIFeature or set it using alias command enableAIFeature.
Groups:
AI Behaviour

Syntax

Syntax:
unit enableAI skilltype
Parameters:
unit: Object
skilltype: String - see disableAI for possible values.
Return Value:
Nothing

Examples

Example 1:
_soldierOne enableAI "Move";

Additional Information

See also:
disableAI checkAIFeature enableAIFeature vehicleMoveInfo

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