magazinesAmmo vehicleName

Operand types

vehicleName: Object

Type of returned value

Description

Returns array of arrays of all vehicle's magazines and their ammo count.
When applied to a unit (soldier), the command behaves differently and will omit magazines already loaded into unit's weapons.
Use magazinesAmmoFull to return all magazines.

Output format:
[[magazine1],[magazine2],[magazine3]...[magazineN]]

Magazine format:
[Magazine class name, Magazine current ammo count]

Used In

Arma3

Example

magazinesAmmo myTank;
// using M2A1 Slammer returns [["32Rnd_120mm_APFSDS_shells_Tracer_Red",32],["16Rnd_120mm_HE_shells_Tracer_Red",16],["2000Rnd_65x39_Belt",2000],["2000Rnd_65x39_Belt",2000]]
Search OFPEC COMREF