setAutonomous: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "Samatra" to "Sa-Matra")
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 1.16
|version1= 1.16
|arg= global
|eff= local


|gr1= Remote Control
|gr1= Remote Control
Line 14: Line 18:
|p2= bool: [[Boolean]]
|p2= bool: [[Boolean]]


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


|x1= <sqf>uav setAutonomous true;</sqf>
|x1= <sqf>uav setAutonomous true;</sqf>
Line 22: Line 26:


{{Note
{{Note
|user= Samatra
|user= Sa-Matra
|timestamp= 20230430040028
|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.
|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.
}}
}}

Latest revision as of 20:58, 4 July 2024

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
Sa-Matra - 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.