turretOwner: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.38 | |1.38 | ||
|arg= global | |arg= global | ||
|serverExec= server | |serverExec= server | ||
|gr1= Turrets | |gr1= Turrets | ||
| Returns id of the [[owner]] of the turret. Server only. Returns 0 on non-server and SP. <br><br> | | Returns id of the [[owner]] of the turret. Server only. Returns 0 on non-server and SP. <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 [[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 [[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. | ||
| vehicle '''turretOwner''' turretPath | | vehicle '''turretOwner''' turretPath | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= turretPath: [[Array]] | |p2= turretPath: [[Array]] | ||
| [[Number]] - [[owner]] id | | [[Number]] - [[owner]] id | ||
|x1= <code>_ownerId = [[vehicle]] [[player]] [[turretOwner]] [0];</code> | |x1= <code>_ownerId = [[vehicle]] [[player]] [[turretOwner]] [0];</code> | ||
| [[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]] | ||
| mp= Run on server | | mp= Run on server | ||
}} | }} | ||
Revision as of 11:28, 18 January 2021
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:
- 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