{"name":"magazinesAllTurrets","operator":null,"title":"magazinesAllTurrets","type":"command","url":"https://community.bistudio.com/wiki/magazinesAllTurrets","revid":377649,"updated":"2026-01-02T09:01:54Z","groups":["Turrets"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.52"}],"since":{"game":"arma3","name":"Arma 3","version":"1.52"},"arma3_since":"1.52","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns all magazines (including empty) from all vehicle turrets (including driver turret [-1]) and their ammo counts. Since Arma 3 v2.08.148327 it is possible to exclude person turrets from returned results.","syntaxes":[{"syntax":"magazinesAllTurrets vehicle","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"vehicle with turrets","types":["Object"],"since":null,"text":"vehicle: Object - vehicle with turrets"}],"returns":{"type":"Array of Arrays with [className, turretPath, ammoCount, id, creator]","types":["Array"],"description":"className: String - magazine class name - turretPath: Turret Path - ammoCount: Number - how many rounds left in the magazine - id: Number - id of the magazine object. The number starts at 10,000,000. This gives it about 6,700,000 possible ids before the number starts losing precision and cannot be used in scripts. - creator: Number - owner / clientOwner of the PC that created the object","text":"Array of Arrays with [className, turretPath, ammoCount, id, creator]\n- className: String - magazine class name\n- turretPath: Turret Path\n- ammoCount: Number - how many rounds left in the magazine\n- id: Number - id of the magazine object. The number starts at 10,000,000. This gives it about 6,700,000 possible ids before the number starts losing precision and cannot be used in scripts.\n- creator: Number - owner / clientOwner of the PC that created the object"},"form":"unary","operator":null,"left":null,"right":{"text":"vehicle","types":["Object"]}},{"syntax":"magazinesAllTurrets [vehicle, excludePersonTurrets]","since":"arma3 2.08","effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"vehicle with turrets","types":["Object"],"since":null,"text":"vehicle: Object - vehicle with turrets"},{"name":"excludePersonTurrets","type":"Boolean","optional":false,"default":null,"description":"when true only vehicle's turrets are queried","types":["Boolean"],"since":null,"text":"excludePersonTurrets: Boolean - when true only vehicle's turrets are queried"}],"returns":{"type":"Array of Arrays with [className, turretPath, ammoCount, id, creator]","types":["Array"],"description":"className: String - magazine class name - turretPath: Turret Path - ammoCount: Number - how many rounds left in the magazine - id: Number - id of the magazine object. The number starts at 10,000,000. This gives it about 6,700,000 possible ids before the number starts losing precision and cannot be used in scripts. - creator: Number - owner / clientOwner of the PC that created the object","text":"Array of Arrays with [className, turretPath, ammoCount, id, creator]\n- className: String - magazine class name\n- turretPath: Turret Path\n- ammoCount: Number - how many rounds left in the magazine\n- id: Number - id of the magazine object. The number starts at 10,000,000. This gives it about 6,700,000 possible ids before the number starts losing precision and cannot be used in scripts.\n- creator: Number - owner / clientOwner of the PC that created the object"},"form":"unary","operator":null,"left":null,"right":{"text":"[vehicle, excludePersonTurrets]","types":["Array"]}}],"examples":[{"text":"```sqf\n_mags = magazinesAllTurrets vehicle player;\n```","code":["_mags = magazinesAllTurrets vehicle player;"]},{"text":"```sqf\n_mags = magazinesAllTurrets [vehicle player, true];\n```","code":["_mags = magazinesAllTurrets [vehicle player, true];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["magazinesTurret","allTurrets","addMagazineTurret","removeMagazinesTurret","removeMagazineTurret","weaponsTurret","loadMagazine","magazines","magazinesDetail","magazinesAmmo","magazinesAmmoFull","addWeaponTurret","removeWeaponTurret","turretLocal","getPylonMagazines","ammoOnPylon"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Turrets","Introduced with Arma 3 version 1.52","Scripting Commands"]}