{"name":"throwables","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","games":{"arma3":"2.18"},"since":"arma3 2.18","arma3_since":"2.18","description":"Returns all throwables in unit inventory in currentThrowable format.","syntaxes":[{"syntax":"throwables unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Array of Arrays","type_expr":"Array<Array>","description":"with [magazineName, muzzleName, id, ammoCount]\n- 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\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","right":{"text":"unit"}},{"syntax":"throwables [unit, includeEmpty]","since":"arma3 2.22","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"includeEmpty","type":"Boolean","optional":true,"default":"false","description":"when true returns empty throwables as well.","type_expr":"Boolean","text":"includeEmpty: Boolean - (Optional, default: false) when true returns empty throwables as well."}],"returns":{"type":"Array of Arrays","type_expr":"Array<Array>","description":"with [magazineName, muzzleName, id, ammoCount]\n- 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\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","right":{"text":"[unit, includeEmpty]"}}],"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*/"]}],"see_also":["selectThrowable","currentThrowable","isThrowable","selectWeapon","currentWeapon","currentMagazine","currentMuzzle","BIS_fnc_isThrowable"]}