enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "v1\.95\.[0-9]{6}" to "v1.96")
(29 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
| arma1


|1.00|= Game version
|1.00


|arg= local |= Arguments in MP
|arg= local


|eff= global |= Effects in MP
|eff= global
____________________________________________________________________________________________
 
|gr1= Object Manipulation
 
|gr2= Unit Control


| Enables parts of the AI behavior that was disabled by [[disableAI]].  
| Enables parts of the AI behavior that was disabled by [[disableAI]].  
<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=
{{Feature | 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.96 it is possible to return the state of the given AI flag via [[checkAIFeature]] or set it using alias command [[enableAIFeature]]}}


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


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


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


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


|seealso= [[disableAI]], [[checkAIFeature]], [[enableAIFeature]], [[vehicleMoveInfo]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->




<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>


[[Category:Scripting Commands|ENABLEAI]]
{{GameCategory|ofpe|Scripting Commands}}
[[Category:Scripting Commands OFP Elite |ENABLEAI]]
{{GameCategory|arma1|Scripting Commands}}
[[Category:Scripting Commands ArmA|ENABLEAI]]
{{GameCategory|arma2|Scripting Commands}}
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 11:22, 3 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationUnit Control

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object
skilltype: String - See disableAI for possible values.
Return Value:
Return value needed

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