isAutonomous: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (global args)
m (Text replacement - "Samatra" to "Sa-Matra")
 
(26 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|1.16|= Game version
|version1= 1.16
|arg= global|= Arguments in MP


____________________________________________________________________________________________
|arg= global


| Returns true if UAV is in autonomous mode. |= Description
|gr1= Remote Control
____________________________________________________________________________________________


| '''isAutonomous''' uav |= Syntax
|descr= Returns whether the UAV is in autonomous mode or not.


|p1= uav: [[Object]] |= Parameter 1
|s1= [[isAutonomous]] uav


| [[Boolean]] |= Return value
|p1= uav: [[Object]]
____________________________________________________________________________________________
 
|x1= <code>bool = [[isAutonomous]] uav;</code> |= Example 1
____________________________________________________________________________________________


| [[setAutonomous]] |= See also
|r1= [[Boolean]]


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


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Sa-Matra
<!-- Note Section BEGIN -->
|timestamp= 20230430040148
 
|text= Only works on UAV vehicle, UAV crew will always return false. Check my comment @ [[setAutonomous]] for more details about this command.
<!-- 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 20:58, 4 July 2024

Hover & click on the images for description

Description

Description:
Returns whether the UAV is in autonomous mode or not.
Groups:
Remote Control

Syntax

Syntax:
isAutonomous uav
Parameters:
uav: Object
Return Value:
Boolean

Examples

Example 1:
private _isAutonomous = isAutonomous uav;

Additional Information

See also:
setAutonomous 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:01 (UTC)
Only works on UAV vehicle, UAV crew will always return false. Check my comment @ setAutonomous for more details about this command.