Description
Returns all vehicle's magazines and their ammo count (also works on supply boxes). 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.
Syntax
Syntax 1
magazinesAmmo vehicle
Parameters:
vehicle: Object - unit or vehicle or container. When transport is supplied, the command returns vehicle's magazines not the cargo. When container is supplied, the command behaves identically to magazinesAmmoCargo
Returns: Array of Arrays in format:
Syntax 2
since arma3 2.00
magazinesAmmo [vehicle, includeEmpty]
Parameters:
vehicle: Object - unit or vehicle.includeEmpty: Boolean - (Optional, default false) true to include empty magazines
Returns: Array of Arrays in format:
Examples
Example 1
_magazinesAmmo = magazinesAmmo player;
/*
[
["30Rnd_65x39_caseless_mag",30],
["30Rnd_65x39_caseless_mag",30],
["16Rnd_9x21_Mag",16],
["SmokeShellGreen",1],
["Chemlight_green",1],
["HandGrenade",1]
]
*/
Example 2
_magazinesAmmo = magazinesAmmo Mi_48;
/*
[
["250Rnd_30mm_APDS_shells",250],
["250Rnd_30mm_HE_shells",250],
["8Rnd_LG_scalpel",8],
["38Rnd_80mm_rockets",38]
]
*/
See also
magazinesAmmoFull · magazinesAmmoCargo · magazinesDetail · magazines · magazinesTurret