{"name":"throwables","operator":null,"title":"throwables","type":"command","url":"https://community.bistudio.com/wiki/throwables","revid":377684,"updated":"2026-01-02T09:02:52Z","groups":["Weapons","Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns all throwables in unit inventory in currentThrowable format.","syntaxes":[{"syntax":"throwables unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"Array of Arrays with [magazineName, muzzleName, id, ammoCount]","types":["Array"],"description":"magazineName: String - muzzleName: String - id: Array with [itemWorldID, creatorID] - itemWorldID: Number - unique ID of the item in the world - creatorID: Number - unique ID of the player who created the item - ammoCount: Number magazine ammo (Since Arma 3 2.22)","text":"Array of Arrays with [magazineName, muzzleName, id, ammoCount]\n- magazineName: String\n- muzzleName: String\n- id: Array with [itemWorldID, creatorID]\n  - itemWorldID: Number - unique ID of the item in the world\n  - creatorID: Number - unique ID of the player who created the item\n- ammoCount: Number magazine ammo (Since Arma 3 2.22)"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}},{"syntax":"throwables [unit, includeEmpty]","since":"arma3 2.22","effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"includeEmpty","type":"Boolean","optional":true,"default":"false","description":"when true returns empty throwables as well.","types":["Boolean"],"since":null,"text":"includeEmpty: Boolean - (Optional, default: false) when true returns empty throwables as well."}],"returns":{"type":"Array of Arrays with [magazineName, muzzleName, id, ammoCount]","types":["Array"],"description":"magazineName: String - muzzleName: String - id: Array with [itemWorldID, creatorID] - itemWorldID: Number - unique ID of the item in the world - creatorID: Number - unique ID of the player who created the item - ammoCount: Number magazine ammo (Since Arma 3 2.22)","text":"Array of Arrays with [magazineName, muzzleName, id, ammoCount]\n- magazineName: String\n- muzzleName: String\n- id: Array with [itemWorldID, creatorID]\n  - itemWorldID: Number - unique ID of the item in the world\n  - creatorID: Number - unique ID of the player who created the item\n- ammoCount: Number magazine ammo (Since Arma 3 2.22)"},"form":"unary","operator":null,"left":null,"right":{"text":"[unit, includeEmpty]","types":["Array"]}}],"examples":[{"text":"```sqf\nthrowables player;\n/*\n    [\n        [\"HandGrenade\",\"HandGrenadeMuzzle\",[1e+007,0],1],\n        [\"SmokeShell\",\"SmokeShellMuzzle\",[1e+007,0],1],\n        [\"SmokeShellGreen\",\"SmokeShellGreenMuzzle\",[1e+007,0],1],\n        [\"Chemlight_green\",\"ChemlightGreenMuzzle\",[1e+007,0],1],\n        [\"Chemlight_green\",\"\",[1e+007,0],1],\n        [\"HandGrenade\",\"\",[1e+007,0],1]\n    ]\n*/\n```","code":["throwables player;\n/*\n\t[\n\t\t[\"HandGrenade\",\"HandGrenadeMuzzle\",[1e+007,0],1],\n\t\t[\"SmokeShell\",\"SmokeShellMuzzle\",[1e+007,0],1],\n\t\t[\"SmokeShellGreen\",\"SmokeShellGreenMuzzle\",[1e+007,0],1],\n\t\t[\"Chemlight_green\",\"ChemlightGreenMuzzle\",[1e+007,0],1],\n\t\t[\"Chemlight_green\",\"\",[1e+007,0],1],\n\t\t[\"HandGrenade\",\"\",[1e+007,0],1]\n\t]\n*/"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["selectThrowable","currentThrowable","isThrowable","selectWeapon","currentWeapon","currentMagazine","currentMuzzle","BIS_fnc_isThrowable"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Command Group: Weapons","Introduced with Arma 3 version 2.18","Scripting Commands"]}