setAutonomous: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *W([a-z ])" to "$1 - w$2")
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.16


|1.16|= Game version
|arg= global


____________________________________________________________________________________________
|eff= local


| Sets UAV autonomous mode. |DESCRIPTION=
|gr1= Remote Control
____________________________________________________________________________________________


| uav '''setAutonomous''' bool |SYNTAX=
|descr= Sets UAV autonomous mode.


|p1= uav: [[Object]] |PARAMETER1=
|s1= uav [[setAutonomous]] bool


|p2= bool: [[Boolean]] |PARAMETER2=
|p1= uav: [[Object]]


| [[Nothing]] |RETURNVALUE=
|p2= bool: [[Boolean]]
____________________________________________________________________________________________
 
|x1= <code>uav [[setAutonomous]] [[true]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[isAutonomous]] |SEEALSO=
|r1= [[Boolean]] - whether the operation was successful. Returns [[false]] when the object is not a uav.


|x1= <sqf>uav setAutonomous true;</sqf>
|seealso= [[isAutonomous]] [[disableAI]] [[enableAI]] [[checkAIFeature]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Samatra
<!-- Note Section BEGIN -->
|timestamp= 20230430040028
 
|text= This command effectively does [[disableAI]] on this list of features: <sqf inline>["ANIM","AUTOTARGET","CHECKVISIBLE","FSM","MOVE","PATH","TARGET","WEAPONAIM"]</sqf>, the effect is local, just like [[disableAI]]. If at least one of these AI features is disabled, then "Autonomous" checkbox in UAV Terminal will be turned off, [[isAutonomous]] will return false, you won't be able to give it waypoints, despite UAV still being mostly autonomous.
<!-- Note Section END -->
}}
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 17:35, 8 November 2023

Hover & click on the images for description

Description

Description:
Sets UAV autonomous mode.
Groups:
Remote Control

Syntax

Syntax:
uav setAutonomous bool
Parameters:
uav: Object
bool: Boolean
Return Value:
Boolean - whether the operation was successful. Returns false when the object is not a uav.

Examples

Example 1:
uav setAutonomous true;

Additional Information

See also:
isAutonomous disableAI enableAI checkAIFeature

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
Samatra - c
Posted on Apr 30, 2023 - 04:00 (UTC)
This command effectively does disableAI on this list of features: ["ANIM","AUTOTARGET","CHECKVISIBLE","FSM","MOVE","PATH","TARGET","WEAPONAIM"], the effect is local, just like disableAI. If at least one of these AI features is disabled, then "Autonomous" checkbox in UAV Terminal will be turned off, isAutonomous will return false, you won't be able to give it waypoints, despite UAV still being mostly autonomous.