turretOwner: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (server exec) |
m (template:command argument fix) |
||
Line 17: | Line 17: | ||
| vehicle '''turretOwner''' turretPath |= Syntax | | vehicle '''turretOwner''' turretPath |= Syntax | ||
|p1= vehicle: [[Object]] |= | |p1= vehicle: [[Object]] |PARAMETER1= | ||
|p2= turretPath: [[Array]] |= | |p2= turretPath: [[Array]] |PARAMETER2= | ||
| [[Number]] - [[owner]] id |= | | [[Number]] - [[owner]] id |RETURNVALUE= | ||
|x1= <code>_ownerId = [[vehicle]] [[player]] [[turretOwner]] [0];</code>|= | |x1= <code>_ownerId = [[vehicle]] [[player]] [[turretOwner]] [0];</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[owner]], [[setOwner]], [[turretLocal]], [[setVehicleAmmo]], [[setVehicleAmmoDef]], [[removeWeaponTurret]], [[addWeaponTurret]], [[addMagazineTurret]], [[magazinesTurret]], [[removeMagazinesTurret]], [[removeMagazineTurret]], [[weaponsTurret]], [[currentMagazineDetailTurret]], [[currentMagazineTurret]], [[currentWeaponTurret]], [[selectWeaponTurret]]|= | | [[owner]], [[setOwner]], [[turretLocal]], [[setVehicleAmmo]], [[setVehicleAmmoDef]], [[removeWeaponTurret]], [[addWeaponTurret]], [[addMagazineTurret]], [[magazinesTurret]], [[removeMagazinesTurret]], [[removeMagazineTurret]], [[weaponsTurret]], [[currentMagazineDetailTurret]], [[currentMagazineTurret]], [[currentWeaponTurret]], [[selectWeaponTurret]]|SEEALSO= | ||
| mp= Run on server |= | | mp= Run on server |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:38, 7 April 2019
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. - 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