connectTerminalToUAV: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ?\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 10: Line 10:
|gr1= Remote Control
|gr1= Remote Control


|descr= Connect person with UAV terminal to UAV unit. UAV Terminal item needs to be assigned to GPS slot.
|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.
If UAV is already connected to another terminal, this new connection will fail.


|s1= person [[connectTerminalToUAV]] uav
|s1= person [[connectTerminalToUAV]] uav
Line 21: Line 20:
|r1= [[Boolean]] - [[true]] on success
|r1= [[Boolean]] - [[true]] on success


|x1= <code>bool = [[player]] [[connectTerminalToUAV]] uav1;</code>
|x1= <sqf>bool = player connectTerminalToUAV uav1;</sqf>


|x2= <code>[[player]] [[connectTerminalToUAV]] [[objNull]]; //disconnect</code>
|x2= <sqf>player connectTerminalToUAV objNull; //disconnect</sqf>


|seealso= [[allUnitsUAV]] [[getConnectedUAV]] [[isUAVConnected]], [[UAVControl]], [[showUAVFeed]], [[shownUAVFeed]]
|seealso= [[allUnitsUAV]] [[getConnectedUAV]] [[isUAVConnected]] [[UAVControl]] [[showUAVFeed]] [[shownUAVFeed]]
}}
}}

Latest revision as of 21: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