enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|")
mNo edit summary
Line 9: Line 9:


|eff= global |Multiplayer Effects=
|eff= global |Multiplayer Effects=
|gr1= Object Manipulation |GROUP1=
|gr2= Unit Control |GROUP2=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 14:09, 24 September 2020

-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
Template:Feature Arma3
Groups:
Object ManipulationUnit Control

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

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