{"name":"getWeaponCargo","operator":null,"title":"getWeaponCargo","type":"command","url":"https://community.bistudio.com/wiki/getWeaponCargo","revid":319293,"updated":"2022-05-13T09:23:30Z","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 weapons types and count from the cargo space","syntaxes":[{"syntax":"getWeaponCargo object","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":"object to check","types":["Object"],"since":null,"text":"object: Object - object to check"}],"returns":{"type":"Array","types":["Array"],"description":"format [all_types_array, all_counts_array]. Eg: [[\"a\", \"b\"], [3, 2]]","text":"Array - format [all_types_array, all_counts_array]. Eg: [[\"a\", \"b\"], [3, 2]]"},"form":"unary","operator":null,"left":null,"right":{"text":"object","types":["Object"]}}],"examples":[{"text":"```sqf\n_content = getWeaponCargo carName;\n```","code":["_content = getWeaponCargo carName;"]},{"text":"```sqf\n_content = getWeaponCargo ammoBoxName;\n```","code":["_content = getWeaponCargo ammoBoxName;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["weaponCargo","addWeaponCargo","addWeaponCargoGlobal","clearWeaponCargo","clearWeaponCargoGlobal"],"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"]}