{"name":"getMagazineCargo","operator":null,"title":"getMagazineCargo","type":"command","url":"https://community.bistudio.com/wiki/getMagazineCargo","revid":348622,"updated":"2023-11-08T13:46:04Z","groups":["Vehicle Inventory","Containers"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.54"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.54"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns all magazines types and count from the cargo space","syntaxes":[{"syntax":"getMagazineCargo object","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":"vehicle or ammo box","types":["Object"],"since":null,"text":"object: Object - vehicle or ammo box"}],"returns":{"type":"Array of arrays. [[\"5MagsType1\",\"10MagsType2\"],[5,10]]","types":["Array"],"description":null,"text":"Array of arrays. [[\"5MagsType1\",\"10MagsType2\"],[5,10]]"},"form":"unary","operator":null,"left":null,"right":{"text":"object","types":["Object"]}}],"examples":[{"text":"```sqf\n_content = getMagazineCargo carName;\n```","code":["_content = getMagazineCargo carName;"]},{"text":"```sqf\n_content = getMagazineCargo ammoBoxName;\n```","code":["_content = getMagazineCargo ammoBoxName;"]},{"text":"```sqf\nhint str getMagazineCargo unitBackpack cursorTarget;\n```","code":["hint str getMagazineCargo unitBackpack cursorTarget;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["magazinesAmmoCargo","magazineCargo","addMagazineCargo","addMagazineCargoGlobal","clearMagazineCargo","clearMagazineCargoGlobal"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Containers","Command Group: Vehicle Inventory","Introduced with Arma 2: Operation Arrowhead version 1.54","Scripting Commands","Take On Helicopters: Scripting Commands"]}