Warning: file_put_contents(/ff_db77056703e84c4711cacfbd23a84e26314ef939d6fb8404.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
turretOwner - OFPEC Scripting Command Reference | OFPEC The Editing Center

vehicleName turretOwner turretPath

Operand types

vehicleName: Object
turretPath: Array

Type of returned value


Returns id of the owner of the turret. On clients always returns 0.

Some info on turrets: 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. When gunner leaves turret it is supposed to change locality to the locality of the vehicle. A vehicle can have one owner while turrets have different owners.

Returned Number is owner id.

Run on server in MP.

Used In



_ownerId = vehicle player turretOwner [0];