enableAI: Difference between revisions

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


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|arg= local |Multiplayer Arguments=
|arg= local


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation


|gr2= Unit Control |GROUP2=
|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]] }}
{{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.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.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]], [[checkAIFeature]], [[enableAIFeature]], [[vehicleMoveInfo]] |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 Armed Assault|ENABLEAI]]
{{GameCategory|arma2|Scripting Commands}}
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
{{GameCategory|tkoh|Scripting Commands}}
[[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