enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (stringtype)
m (changed global to local variable to make clear the variable)
Line 15: Line 15:
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''enableAI''' "section" |= Syntax
| [[Object#Unit|Unit]] '''enableAI''' "section" |= Syntax


|p1= unit [[Object]] |= Parameter 1
|p1= [[Object#Unit|Unit]] |= Parameter 1


|p2= section [[String]] |= Parameter 2
|p2= section [[String]] |= Parameter 2
Line 24: Line 24:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>soldierOne enableAI "Move"</pre> |= Example 1
|x1= <pre>_soldierOne enableAI "Move"</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 11:05, 27 August 2007

-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
section String
Return Value:
Nothing

Examples

Example 1:
_soldierOne enableAI "Move"

Additional Information

See also:
disableAI

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