---
name: "magazinesAllTurrets"
type: command
status: ok
groups: ["Turrets"]
arma3_since: "1.52"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/magazinesAllTurrets
revid: 377649
updated: 2026-01-02T09:01:54Z
---

# magazinesAllTurrets

*Command · Turrets · Arma 3 v1.52*

Locality: arguments **global**

## Description

Returns all magazines (including empty) from all vehicle turrets (including driver turret [-1]) and their ammo counts. Since Arma 3 v2.08.148327 it is possible to exclude person turrets from returned results.

## Syntax

### Syntax 1

```sqf
magazinesAllTurrets vehicle
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of [Array](../topics/Array.md)s with [className, turretPath, ammoCount, id, creator]
- className: [String](../topics/String.md) - magazine class name
- turretPath: Turret Path
- ammoCount: [Number](../topics/Number.md) - how many rounds left in the magazine
- id: [Number](../topics/Number.md) - id of the magazine object. The number starts at 10,000,000. This gives it about 6,700,000 possible ids before the number starts losing precision and cannot be used in scripts.
- creator: [Number](../topics/Number.md) - [owner](../commands/owner.md) / [clientOwner](../commands/clientOwner.md) of the PC that created the object

### Syntax 2

*since arma3 2.08*

```sqf
magazinesAllTurrets [vehicle, excludePersonTurrets]
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md) - vehicle with turrets
- `excludePersonTurrets`: [Boolean](../topics/Boolean.md) - when [true](../commands/true.md) only vehicle's turrets are queried

**Returns:** [Array](../topics/Array.md) of [Array](../topics/Array.md)s with [className, turretPath, ammoCount, id, creator]
- className: [String](../topics/String.md) - magazine class name
- turretPath: Turret Path
- ammoCount: [Number](../topics/Number.md) - how many rounds left in the magazine
- id: [Number](../topics/Number.md) - id of the magazine object. The number starts at 10,000,000. This gives it about 6,700,000 possible ids before the number starts losing precision and cannot be used in scripts.
- creator: [Number](../topics/Number.md) - [owner](../commands/owner.md) / [clientOwner](../commands/clientOwner.md) of the PC that created the object

## Examples

### Example 1

```sqf
_mags = magazinesAllTurrets vehicle player;
```

### Example 2

```sqf
_mags = magazinesAllTurrets [vehicle player, true];
```

## See also

[magazinesTurret](../commands/magazinesTurret.md) · [allTurrets](../commands/allTurrets.md) · [addMagazineTurret](../commands/addMagazineTurret.md) · [removeMagazinesTurret](../commands/removeMagazinesTurret.md) · [removeMagazineTurret](../commands/removeMagazineTurret.md) · [weaponsTurret](../commands/weaponsTurret.md) · [loadMagazine](../commands/loadMagazine.md) · [magazines](../commands/magazines.md) · [magazinesDetail](../commands/magazinesDetail.md) · [magazinesAmmo](../commands/magazinesAmmo.md) · [magazinesAmmoFull](../commands/magazinesAmmoFull.md) · [addWeaponTurret](../commands/addWeaponTurret.md) · [removeWeaponTurret](../commands/removeWeaponTurret.md) · [turretLocal](../commands/turretLocal.md) · [getPylonMagazines](../commands/getPylonMagazines.md) · [ammoOnPylon](../commands/ammoOnPylon.md)

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