enableAI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ENABLEAI]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |ENABLEAI]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|ENABLEAI]]


| arma |= Game name


|2.53|= Game version
____________________________________________________________________________________________


<h2 style="color:#000066">'''''unit'' enableAI ''section'''''</h2>
| Enables parts of the AI behaviour. Section is one of:


*"TARGET" (enables watching assigned targets)
*"AUTOTARGET" (enables independed target assigning and watching of unknown targets)
*"MOVE" (enables movement). |= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit '''enableAI''' section |= Syntax


'''unit''': [[Object]]
|p1= unit [[Object]] |= Parameter 1


'''section''': [[String]]
|p2= section [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>soldierOne enableAI "Move"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 2.53 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Enables parts of the AI behaviour.
<h3 style="display:none">Bottom Section</h3>


'''Section''' is one of:
[[Category:Scripting Commands|ENABLEAI]]
 
[[Category:Scripting Commands OFP Elite |ENABLEAI]]
*"TARGET" (enables watching assigned targets)
[[Category:Scripting Commands ArmA|ENABLEAI]]
*"AUTOTARGET" (enables independed target assigning and watching of unknown targets)
*"MOVE" (enables movement).
 
 
'''Example:'''
 
soldierOne '''enableAI''' "Move"

Revision as of 10:05, 2 August 2006

-wrong parameter ("Arma") defined!-2.53
Hover & click on the images for description

Description

Description:
Enables parts of the AI behaviour. Section is one of:
  • "TARGET" (enables watching assigned targets)
  • "AUTOTARGET" (enables independed target assigning and watching of unknown targets)
  • "MOVE" (enables movement).
Groups:
Uncategorised

Syntax

Syntax:
unit enableAI section
Parameters:
unit Object
section String
Return Value:
Nothing

Examples

Example 1:
soldierOne enableAI "Move"

Additional Information

See also:
See also needed

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