turretOwner

From Bohemia Interactive Community
Revision as of 19:15, 12 December 2014 by Killzone Kid (talk | contribs) (Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.37|= Game version |arg= global ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.37|1.37]]
Hover & click on the images for description

Description

Description:
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.
Multiplayer:
Run on server
Groups:
Uncategorised

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

[[Category:Introduced with arma3dev version 1.37]][[ Category: arma3dev: New Scripting Commands | TURRETOWNER]][[ Category: arma3dev: Scripting Commands | TURRETOWNER]]

Notes

Bottom Section