{"name":"magazines","title":"magazines","type":"command","url":"https://community.bistudio.com/wiki/magazines","revid":378372,"updated":"2026-04-03T16:50:03Z","groups":["Unit Inventory","Vehicle Inventory"],"status":"ok","games":{"ofp":"1.75","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.75","arma3_since":"0.50","description":"Returns array of type names of all vehicle's magazines. When applied to a unit, the command behaves differently and will omit magazines already loaded into unit's weapons. Use currentMagazine to get this information for a currently loaded magazine.","syntaxes":[{"syntax":"magazines vehicle","params":[{"name":"vehicle","type":"Object","description":"unit or vehicle","type_expr":"Object"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>"},"form":"unary","right":{"text":"vehicle"}},{"syntax":"magazines [vehicle, includeEmpty]","since":"arma3 2.00","params":[{"name":"vehicle","type":"Object","description":"unit or vehicle","type_expr":"Object"},{"name":"includeEmpty","type":"Boolean","optional":true,"default":"false","description":"true to include empty magazines","type_expr":"Boolean","text":"includeEmpty: Boolean - (Optional, default false) true to include empty magazines"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>"},"form":"unary","right":{"text":"[vehicle, includeEmpty]"}}],"examples":[{"code":["_mags = magazines player;"]}],"see_also":["currentMagazine","magazinesTurret","magazinesDetail","magazinesAmmo","magazinesAmmoFull","ammo","weapons","backpacks"],"notes":[{"user":"Ceeeb","text":"In Operation Flashpoint 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."},{"user":"Dr_Eyeball","date":"2011-11-25","text":"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."}]}