enableAI: Difference between revisions

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


| arma |= Game name
| arma1


|1.00|= Game version
|1.00
____________________________________________________________________________________________


| Enables parts of the AI behaviour. Section is one of:
|arg= local


*'''"TARGET"''' - enables watching assigned targets
|eff= global
*'''"AUTOTARGET"''' - enables independed target assigning and watching of unknown targets
*'''"MOVE"''' - enables movement.
*'''"ANIM"''' - enables animation. |= Description
____________________________________________________________________________________________


| unit '''enableAI''' section |= Syntax
|gr1= Object Manipulation


|p1= unit: [[Object]]  |= Parameter 1
|gr2= Unit Control


|p2= section: [[String]] |= Parameter 2
| Enables parts of the AI behavior that was disabled by [[disableAI]].
<br><br>
{{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]]}}


| [[Nothing]] |= Return value
| unit '''enableAI''' skilltype
____________________________________________________________________________________________
 
|x1= <pre>_soldierOne enableAI "Move"</pre> |= Example 1
____________________________________________________________________________________________


| [[disableAI]], [[disableAI_(VBS2)]] |= See also
|p1= unit: [[Object]]


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


<h3 style="display:none">Notes</h3>
| [[Nothing]]
<dl class="command_description">
 
<!-- Note Section BEGIN -->
|x1= <code>_soldierOne [[enableAI]] "Move";</code>


<dd class="notedate">Posted on Mar 19, 2010 - 14:39</dd>
|seealso= [[disableAI]], [[checkAIFeature]], [[enableAIFeature]], [[vehicleMoveInfo]]
<dt class="note">'''[[User:TijmenJoppe|TijmenJoppe]]'''</dt>
}}
<dd class="note">
''Multiplayer Use for VBS2:''


The [[disableAI]] and enableAI commands need to be executed on the server or client where target unit is local. In other words: executing the command in a script on the server on a unit that is remote to that server (and local to one of the network clients) will have no effect.
</dd>


<!-- 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 VBS2|{{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