enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 14: Line 14:


<br><br>
<br><br>
{{Important |When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it <tt>_unit [[enableAI]] "TeamSwitch"</tt> so that the unit continues with [[waypoints]] }}|= Description
{{Important |When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it <tt>_unit [[enableAI]] "TeamSwitch"</tt> so that the unit continues with [[waypoints]] }}|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''enableAI''' skilltype |= Syntax
| unit '''enableAI''' skilltype |SYNTAX=


|p1= unit: [[Object]]  |= Parameter 1
|p1= unit: [[Object]]  |PARAMETER1=


|p2= skilltype: [[String]] - See [[disableAI]] for possible values. |= Parameter 2
|p2= skilltype: [[String]] - See [[disableAI]] for possible values. |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_soldierOne [[enableAI]] "Move";</code> |= Example 1
|x1= <code>_soldierOne [[enableAI]] "Move";</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[disableAI]] |= See also
| [[disableAI]] |SEEALSO=


}}
}}

Revision as of 15:38, 7 April 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
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:
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