magazinesAllTurrets

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.52
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.52

Description

Description:
Returns all magazines (including empty) from all vehicle turrets (including driver turret [-1]) and their ammo counts.

Syntax

Syntax:
magazinesAllTurrets vehicle
Parameters:
vehicle: Object - vehicle with turrets
Return Value:
Array - in the following format: [[className, turretPath, ammoCount, id, creator],...] where:
  • className: String - magazine class name
  • turretPath: Array - turret path
  • ammoCount: Number - how many rounds left in the magazine
  • id: Number - id of the magazine object. The number starts at 10,000,000. This gives it about 7,600,000 possible ids before the number starts losing precision and cannot be used in scripts.
  • creator: Number - owner / clientOwner of the PC that created the object

Examples

Example 1:
_mags = magazinesAllTurrets vehicle player;

Additional Information

Multiplayer:
-
See also:
magazinesTurretallTurretsaddMagazineTurretremoveMagazinesTurretremoveMagazineTurretweaponsTurretloadMagazinemagazinesmagazinesDetailmagazinesAmmomagazinesAmmoFulladdWeaponTurretremoveWeaponTurretturretLocal

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section