enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (command group)
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
Line 37: Line 37:
|r1= [[Nothing]]
|r1= [[Nothing]]


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


|seealso= [[disableAI]] [[checkAIFeature]] [[enableAIFeature]] [[vehicleMoveInfo]]
|seealso= [[disableAI]] [[checkAIFeature]] [[enableAIFeature]] [[vehicleMoveInfo]]
}}
}}

Revision as of 12:02, 12 May 2022

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