enableAI

From Bohemia Interactive Community
Revision as of 15:44, 19 March 2010 by Tijmenjoppe (talk | contribs)
Jump to navigation Jump to search
-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Enables parts of the AI behaviour. Section is one of:
  • "TARGET" - enables watching assigned targets
  • "AUTOTARGET" - enables independed target assigning and watching of unknown targets
  • "MOVE" - enables movement.
  • "ANIM" - enables animation.
Groups:
Uncategorised

Syntax

Syntax:
unit enableAI section
Parameters:
unit: Object
section: String
Return Value:
Nothing

Examples

Example 1:
_soldierOne enableAI "Move"

Additional Information

See also:
disableAIdisableAI_(VBS2)

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

Posted on Mar 19, 2010 - 14:39
TijmenJoppe
Multiplayer Use for VBS2: The disableAI and enableAI commands need to be executed on the server or client where target unit is local. In other words: executing the command in a script on the server on a unit that is remote to that server (and local to one of the network clients) will have no effect.

Bottom Section