connectTerminalToUAV: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
No edit summary
 
(45 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.76


|0.76|= Game version
|arg= global
____________________________________________________________________________________________


| Connect person with UAV terminal to UAV unit. UAV Terminal item needs to be assigned to GPS slot. |= Description
|eff= global
____________________________________________________________________________________________


| person '''connectTerminalToUav''' uav |= Syntax
|gr1= Remote Control


|p1= person: [[Object]] |= Parameter 1
|descr= Connect person with UAV terminal to UAV unit. UAV Terminal item needs to be assigned to GPS slot. In MP the connection is handled [[local]]ly, therefore it is possible for multiple MP clients to connect to the same UAV. However, each UAV can only have one connection to a terminal per MP client, so if UAV is already connected to another terminal on the same MP client, this new connection will fail.


|p2= uav: [[Object]] |= Parameter 2
|s1= person [[connectTerminalToUAV]] uav


| [[Boolean]] |= RETURNVALUE
|p1= person: [[Object]]


|p2= uav: [[Object]]


|x1= <code>bool = [[player]] [[connectTerminalToUav]] uav1;</code>|= EXAMPLE1
|r1= [[Boolean]] - [[true]] on success


|x2= <code>[[player]] [[connectTerminalToUav]] [[objNull]]; //disconnect</code>|= EXAMPLE2
|x1= <sqf>bool = player connectTerminalToUAV uav1;</sqf>


____________________________________________________________________________________________
|x2= <sqf>player connectTerminalToUAV objNull; //disconnect</sqf>


| [[allUnitsUav]], [[getConnectedUav]], [[isUavConnected]], [[uavControl]], [[showUavFeed]], [[shownUavFeed]] |= SEEALSO
|seealso= [[allUnitsUAV]] [[getConnectedUAV]] [[isUAVConnected]] [[UAVControl]] [[showUAVFeed]] [[shownUAVFeed]]
 
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:30, 25 March 2024

Hover & click on the images for description

Description

Description:
Connect person with UAV terminal to UAV unit. UAV Terminal item needs to be assigned to GPS slot. In MP the connection is handled locally, therefore it is possible for multiple MP clients to connect to the same UAV. However, each UAV can only have one connection to a terminal per MP client, so if UAV is already connected to another terminal on the same MP client, this new connection will fail.
Groups:
Remote Control

Syntax

Syntax:
person connectTerminalToUAV uav
Parameters:
person: Object
uav: Object
Return Value:
Boolean - true on success

Examples

Example 1:
bool = player connectTerminalToUAV uav1;
Example 2:
player connectTerminalToUAV objNull; //disconnect

Additional Information

See also:
allUnitsUAV getConnectedUAV isUAVConnected UAVControl showUAVFeed shownUAVFeed

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