enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3>" to "")
m (Text replacement - "v1\.95\.[0-9]{6}" to "v1.96")
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma1
| arma1
Line 15: Line 15:
| 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]]}}
{{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
| unit '''enableAI''' skilltype
Line 28: Line 28:
|x1= <code>_soldierOne [[enableAI]] "Move";</code>
|x1= <code>_soldierOne [[enableAI]] "Move";</code>


| [[disableAI]], [[checkAIFeature]], [[enableAIFeature]], [[vehicleMoveInfo]]
|seealso= [[disableAI]], [[checkAIFeature]], [[enableAIFeature]], [[vehicleMoveInfo]]
 
}}
}}
<dl class="command_description">
<!-- Note Section BEGIN -->




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




[[Category:Scripting Commands|ENABLEAI]]
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}

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