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;
Example 2
_magazinesAmmo = magazinesAmmo Mi_48;
See also
magazinesAmmoFull · magazinesAmmoCargo · magazinesDetail · magazines · magazinesTurret
When used on vehicles this will only return all magazines associated with a single turretPath (which one depends on the actual armament of the vehicle, usually the first armed turretPath or alternatively turretPath [-1]).
If you want to get all turrets' magazines, use allTurrets and magazinesTurret.
--Actium (talk) 15:41, 20 December 2014 (CET)