---
name: "turretLocal"
type: command
status: ok
groups: ["Turrets"]
arma3_since: "1.32"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/turretLocal
revid: 378399
updated: 2026-04-04T08:02:12Z
---

# turretLocal

*Command · Turrets · Arma 3 v1.32*

Locality: arguments **global**

## Description

Checks if a turret is [local](../topics/Multiplayer_Scripting.md#locality).

## Syntax

```sqf
vehicle turretLocal turretPath
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `turretPath`: Turret Path - supports [-1] for driver turret

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
_isLocal = vehicle player turretLocal [0];
```

### Example 2

```sqf
if (heli turretLocal [1]) then { heli setVehicleAmmo 1 };
```

### Example 3

```sqf
if (isNil { heli turretLocal [5] }) then { hint "Turret 5 is non-existent" };
```

## Multiplayer

A vehicle turret will change locality when player gunner gets in it, just like vehicle changes locality when player driver gets in it.
Many commands for turrets work only where turret is [local](../topics/Multiplayer_Scripting.md#locality).
When gunner leaves turret it is supposed to change locality to the locality of the vehicle.

## See also

[turretOwner](../commands/turretOwner.md) · [setVehicleAmmo](../commands/setVehicleAmmo.md) · [setVehicleAmmoDef](../commands/setVehicleAmmoDef.md) · [removeWeaponTurret](../commands/removeWeaponTurret.md) · [addWeaponTurret](../commands/addWeaponTurret.md) · [addMagazineTurret](../commands/addMagazineTurret.md) · [magazinesTurret](../commands/magazinesTurret.md) · [removeMagazinesTurret](../commands/removeMagazinesTurret.md) · [removeMagazineTurret](../commands/removeMagazineTurret.md) · [weaponsTurret](../commands/weaponsTurret.md) · [currentMagazineDetailTurret](../commands/currentMagazineDetailTurret.md) · [currentMagazineTurret](../commands/currentMagazineTurret.md) · [currentWeaponTurret](../commands/currentWeaponTurret.md) · [selectWeaponTurret](../commands/selectWeaponTurret.md) · [turretUnit](../commands/turretUnit.md) · [allTurrets](../commands/allTurrets.md)

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