turretOwner

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.38
  Arguments of this scripting command don't have to be local to the client the command is executed onThis scripting command must be executed on the server to work properly in multiplayer

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.38

Description

Description:
Returns id of the owner of the turret. Server only. Returns 0 on non-server and SP.

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.

Syntax

Syntax:
vehicle turretOwner turretPath
Parameters:
vehicle: Object
turretPath: Array
Return Value:
Number - owner id

Examples

Example 1:
_ownerId = vehicle player turretOwner [0];

Additional Information

Multiplayer:
Run on server
See also:
ownersetOwnerturretLocalsetVehicleAmmosetVehicleAmmoDefremoveWeaponTurretaddWeaponTurretaddMagazineTurretmagazinesTurretremoveMagazinesTurretremoveMagazineTurretweaponsTurretcurrentMagazineDetailTurretcurrentMagazineTurretcurrentWeaponTurretselectWeaponTurret

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section