{"name":"currentMagazine","operator":null,"title":"currentMagazine","type":"command","url":"https://community.bistudio.com/wiki/currentMagazine","revid":364070,"updated":"2024-05-03T19:32:45Z","groups":["Unit Inventory","Vehicle Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns class name of currently loaded vehicle's / unit's magazine.","syntaxes":[{"syntax":"currentMagazine vehicle","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":"unit or vehicle","types":["Object"],"since":null,"text":"vehicle: Object - unit or vehicle"}],"returns":{"type":"String","types":["String"],"description":null,"text":"String"},"form":"unary","operator":null,"left":null,"right":{"text":"vehicle","types":["Object"]}}],"examples":[{"text":"```sqf\n_magazineClass = currentMagazine player;//Example: \"30Rnd_545x39_AK\"\n```","code":["_magazineClass = currentMagazine player;//Example: \"30Rnd_545x39_AK\""]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["magazines","currentMagazineDetail","currentWeapon","currentMuzzle","currentThrowable","currentVisionMode","currentWeaponMode","currentZeroing","magazinesTurret","weaponsTurret"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Command Group: Vehicle Inventory","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}