---
name: "allUnitsUAV"
type: command
status: ok
groups: ["Remote Control", "Object Detection"]
arma3_since: "0.76"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/allUnitsUAV
revid: 364114
updated: 2024-05-04T22:05:25Z
---

# allUnitsUAV

*Command · Remote Control, Object Detection · Arma 3 v0.76*

## Description

Return a list of all UAV vehicles.

## Syntax

```sqf
allUnitsUAV
```

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s - array of UAV vehicles

## Examples

### Example 1

```sqf
hint format ["Number of UAV(s) on the map: %1", count allUnitsUAV];
```

### Example 2

```sqf
{ _x setDamage 1 } forEach allUnitsUAV;
```

## See also

[unitIsUAV](../commands/unitIsUAV.md) · [allCurators](../commands/allCurators.md) · [allGroups](../commands/allGroups.md) · [allDead](../commands/allDead.md) · [playableUnits](../commands/playableUnits.md) · [switchableUnits](../commands/switchableUnits.md) · [vehicles](../commands/vehicles.md) · [allDeadMen](../commands/allDeadMen.md) · [agents](../commands/agents.md) · [showUAVFeed](../commands/showUAVFeed.md) · [shownUAVFeed](../commands/shownUAVFeed.md) · [getConnectedUAV](../commands/getConnectedUAV.md) · [UAVControl](../commands/UAVControl.md) · [connectTerminalToUAV](../commands/connectTerminalToUAV.md) · [isUAVConnected](../commands/isUAVConnected.md)

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