magazines
Jump to navigation
Jump to search
Description
- Description:
- Description needed
- Groups:
- Unit InventoryVehicle Inventory
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicle: Object - unit or vehicle
- Return Value:
- Return value needed
Alternative Syntax
- Syntax:
- magazines [vehicle, includeEmpty] Template:Since
- Parameters:
- vehicle: Object - unit or vehicle
- includeEmpty: Boolean - (Optional, default false) true to include empty magazines
- Return Value:
- Array
Examples
- Example 1:
_mags = magazines player
Additional Information
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
- Ceeeb
- In OFP v1.96, if a weapon is loaded with an empty magazine, that magazine will still be counted by this command. The ammo command can be used to check if a unit has any ammunition into it is last magazine.
- Posted on 25 November 2011
- Dr_Eyeball
- This command does not include non-turret weapon magazines, such as smoke, flare or chaff magazines which are usually declared in the root of the vehicle's class, rather than in the Turrets hierarchy.