---
name: "turretOwner"
type: command
status: ok
groups: ["Turrets"]
arma3_since: "1.38"
locality: {"argument": "global", "effect": null, "server_exec": true}
source: https://community.bistudio.com/wiki/turretOwner
revid: 377490
updated: 2026-01-02T06:49:12Z
---

# turretOwner

*Command · Turrets · Arma 3 v1.38*

Locality: arguments **global** · **server execution only**

## Description

Returns id of the turret's [owner](../commands/owner.md). Returns 0 on non-server and SP.

## Syntax

```sqf
vehicle turretOwner turretPath
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `turretPath`: Turret Path - since Arma 3 v2.08 [-1] (driver) is supported

**Returns:** [Number](../topics/Number.md) - [owner](../commands/owner.md) id

## Examples

### Example 1

```sqf
_ownerId = vehicle player turretOwner [0];
```

## 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. A vehicle can have one [owner](../commands/owner.md) while turrets have different [owner](../commands/owner.md)s.

## See also

[owner](../commands/owner.md) · [setOwner](../commands/setOwner.md) · [turretLocal](../commands/turretLocal.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)

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