enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 13: Line 12:


|gr2= Unit Control |GROUP2=
|gr2= Unit Control |GROUP2=
____________________________________________________________________________________________


| Enables parts of the AI behavior that was disabled by [[disableAI]].  
| Enables parts of the AI behavior that was disabled by [[disableAI]].  
Line 19: Line 17:
{{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]] }}
{{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]] }}
{{Feature|arma3 | 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]]}}|DESCRIPTION=
{{Feature|arma3 | 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]]}}|DESCRIPTION=
____________________________________________________________________________________________


| unit '''enableAI''' skilltype |SYNTAX=
| unit '''enableAI''' skilltype |SYNTAX=
Line 28: Line 25:


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


| [[disableAI]], [[checkAIFeature]], [[enableAIFeature]], [[vehicleMoveInfo]] |SEEALSO=
| [[disableAI]], [[checkAIFeature]], [[enableAIFeature]], [[vehicleMoveInfo]] |SEEALSO=

Revision as of 01:15, 17 January 2021

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
Arma 3
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:
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