---
name: "allTurrets"
type: command
status: ok
groups: ["Turrets"]
arma3_since: "1.34"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/allTurrets
revid: 378481
updated: 2026-04-24T12:20:34Z
---

# allTurrets

*Command · Turrets · Arma 3 v1.34*

## Description

Returns array of available turret paths from vehicle object.

> [!NOTE]
> - to look up turrets from config, use [BIS_fnc_allTurrets](../functions/BIS_fnc_allTurrets.md)
> - to get config from turret path, use [BIS_fnc_turretConfig](../functions/BIS_fnc_turretConfig.md)

## Syntax

### Syntax 1

```sqf
allTurrets vehicle
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of Turret Paths

### Syntax 2

```sqf
allTurrets [vehicle, includeFFV]
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `includeFFV`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to include FFV (Firing From Vehicle) positions, [false](../commands/false.md) to exclude them

**Returns:** [Array](../topics/Array.md) of Turret Paths

## Examples

### Example 1

```sqf
_turretPaths = allTurrets _mySlammerUP;                // [[0],[0,0]]
_turretPaths = allTurrets [_mySlammerUP, true];        // [[0],[0,0]] <- commander turret is also an FFV turret
_turretPaths = allTurrets [_mySlammerUP, false];    // [[0]]
```

### Example 2

Return FFV turrets only:

```sqf
_FFVTurrets = allTurrets [tank, true] - allTurrets [tank, false];
```

## See also

[moveInTurret](../commands/moveInTurret.md) · [enablePersonTurret](../commands/enablePersonTurret.md) · [assignedVehicleRole](../commands/assignedVehicleRole.md) · [fullCrew](../commands/fullCrew.md) · [turretUnit](../commands/turretUnit.md) · [turretLocal](../commands/turretLocal.md) · [turretOwner](../commands/turretOwner.md) · [BIS_fnc_allTurrets](../functions/BIS_fnc_allTurrets.md) · [BIS_fnc_turretConfig](../functions/BIS_fnc_turretConfig.md)

## Community notes

**AgentRev** — 2016-04-13

The first syntax (vehicle only without boolean) will include commander turrets like in the example, and does not include actual FFV turrets like offroad back seats, as expected.

Also, the driver turret [-1] is never included in the results, which can be solved as follows:

```sqf
_paths = [[-1]] + allTurrets _vehicle;
```

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