Arma 3 Scripting

Command in Remote Control

getConnectedUAVUnit

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns UAV/UGV AI unit, which player is controlling. To return UAV vehicle, see getConnectedUAV

Syntax

getConnectedUAVUnit person

Parameters:

Returns: Object - UAV unit (AI driver or AI gunner) or objNull otherwise including if the connected person is remote

Examples

Example 1

private _playersDrone = getConnectedUAVUnit player;

See also

getConnectedUAV · isUAVConnected