turretOwner: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " is local" to " is local")
No edit summary
Line 10: Line 10:
|gr1= Turrets
|gr1= Turrets


|descr= Returns id of the [[owner]] of the turret. Server only. Returns 0 on non-server and SP. <br><br>
|descr= Returns id of the [[owner]] of the turret. Server only. Returns 0 on non-server and SP. Since Arma 3 v2.07.148325 this command supports driver turret [-1]<br><br>
'''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 [[Multiplayer Scripting#Locality|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 [[owner]]s.
'''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 [[Multiplayer Scripting#Locality|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 [[owner]]s.



Revision as of 22:56, 8 October 2021

Hover & click on the images for description

Description

Description:
Returns id of the owner of the turret. Server only. Returns 0 on non-server and SP. Since Arma 3 v2.07.148325 this command supports driver turret [-1]

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.
Groups:
Turrets

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

See also:
ownersetOwnerturretLocalsetVehicleAmmosetVehicleAmmoDefremoveWeaponTurretaddWeaponTurretaddMagazineTurretmagazinesTurretremoveMagazinesTurretremoveMagazineTurretweaponsTurretcurrentMagazineDetailTurretcurrentMagazineTurretcurrentWeaponTurretselectWeaponTurret

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note