---
name: "unitTurret"
type: command
status: ok
groups: ["Turrets"]
arma3_since: "2.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/unitTurret
revid: 377504
updated: 2026-01-02T06:49:34Z
---

# unitTurret

*Command · Turrets · Arma 3 v2.00*

## Description

Returns the turret path the given vehicle's gunner is in.
To get the turret's unit see [turretUnit](../commands/turretUnit.md).

## Syntax

```sqf
vehicle unitTurret gunner
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `gunner`: [Object](../topics/Object.md)

**Returns:** Turret Path
- `[-1]` is returned if the [gunner](../commands/gunner.md) is also the [driver](../commands/driver.md).
When no units are in any of vehicle's turret, empty array `[]` is returned.

## Examples

### Example 1

```sqf
_vehicle unitTurret _gunner;
```

### Example 2

```sqf
vehicle player unitTurret player;
```

## See also

[turretUnit](../commands/turretUnit.md) · [driver](../commands/driver.md) · [gunner](../commands/gunner.md) · [commander](../commands/commander.md) · [effectiveCommander](../commands/effectiveCommander.md) · [currentPilot](../commands/currentPilot.md) · [moveInTurret](../commands/moveInTurret.md) · [assignAsTurret](../commands/assignAsTurret.md) · [assignedVehicleRole](../commands/assignedVehicleRole.md) · [lockedTurret](../commands/lockedTurret.md) · [isTurnedOut](../commands/isTurnedOut.md)

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