turretOwner: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "|size=.8" to "|size= 0.75") |
||
(14 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
|gr1= Turrets | |gr1= Turrets | ||
|descr= Returns id of the [[owner]] | |descr= Returns id of the turret's [[owner]]. Returns 0 on non-server and SP. | ||
|mp= 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. | |||
|s1= vehicle [[turretOwner]] turretPath | |s1= vehicle [[turretOwner]] turretPath | ||
Line 17: | Line 18: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= turretPath: [[Array]] | |p2= turretPath: [[Array]] format [[Turret Path]] - since {{GVI|arma3|2.08|size= 0.75}} [-1] (driver) is supported | ||
|r1= [[Number]] - [[owner]] id | |r1= [[Number]] - [[owner]] id | ||
|x1= < | |x1= <sqf>_ownerId = vehicle player turretOwner [0];</sqf> | ||
|seealso= [[owner]] [[setOwner]] [[turretLocal]] [[setVehicleAmmo]] [[setVehicleAmmoDef]] [[removeWeaponTurret]] [[addWeaponTurret]] | |seealso= [[owner]] [[setOwner]] [[turretLocal]] [[setVehicleAmmo]] [[setVehicleAmmoDef]] [[removeWeaponTurret]] [[addWeaponTurret]] [[addMagazineTurret]] [[magazinesTurret]] [[removeMagazinesTurret]] [[removeMagazineTurret]] [[weaponsTurret]] [[currentMagazineDetailTurret]] [[currentMagazineTurret]] [[currentWeaponTurret]] [[selectWeaponTurret]] | ||
}} | }} |
Latest revision as of 12:10, 21 December 2022
Description
- Description:
- Returns id of the turret's owner. Returns 0 on non-server and SP.
- Multiplayer:
- 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 format Turret Path - since 2.08 [-1] (driver) is supported
- Return Value:
- Number - owner id
Examples
- Example 1:
Additional Information
- See also:
- owner setOwner turretLocal setVehicleAmmo setVehicleAmmoDef removeWeaponTurret addWeaponTurret addMagazineTurret magazinesTurret removeMagazinesTurret removeMagazineTurret weaponsTurret currentMagazineDetailTurret currentMagazineTurret currentWeaponTurret selectWeaponTurret
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