---
name: "getConnectedUAVUnit"
type: command
status: ok
groups: ["Remote Control"]
arma3_since: "2.08"
locality: {"argument": "local", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getConnectedUAVUnit
revid: 363204
updated: 2024-03-25T20:23:08Z
---

# getConnectedUAVUnit

*Command · Remote Control · Arma 3 v2.08*

Locality: arguments **local**

## Description

Returns UAV/UGV AI unit, which player is controlling. To return UAV vehicle, see [getConnectedUAV](../commands/getConnectedUAV.md)

## Syntax

```sqf
getConnectedUAVUnit person
```

**Parameters:**

- `person`: [Object](../topics/Object.md) - unit controlling the UAV/UGV

**Returns:** [Object](../topics/Object.md) - UAV unit (AI driver or AI gunner) or [objNull](../commands/objNull.md) otherwise including if the connected person is remote

## Examples

### Example 1

```sqf
private _playersDrone = getConnectedUAVUnit player;
```

## See also

[getConnectedUAV](../commands/getConnectedUAV.md) · [isUAVConnected](../commands/isUAVConnected.md)

<sub>Source: [BI Community Wiki — getConnectedUAVUnit](https://community.bistudio.com/wiki/getConnectedUAVUnit) (revision 363204).</sub>
