enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (template:command argument fix)
Line 6: Line 6:
|1.00|= Game version
|1.00|= Game version


|arg= local |= Arguments in MP
|arg= local |Multiplayer Arguments=


|eff= global |= Effects in MP
|eff= global |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 12:07, 5 August 2019

-wrong parameter ("Arma") defined!-1.00
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
Since Arma 3 v1.95.145843 it is possible to return the state of the given AI flag via checkAIFeature or set it using alias command enableAIFeature
Groups:
Uncategorised

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:
disableAIcheckAIFeatureenableAIFeature

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

Notes

Bottom Section