{"name":"removeWeaponItem","title":"removeWeaponItem","type":"command","url":"https://community.bistudio.com/wiki/removeWeaponItem","revid":376149,"updated":"2025-09-06T17:37:00Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"2.22"},"since":"arma3 2.22","arma3_since":"2.22","locality":{"argument":"local","effect":"global"},"description":"Removes magazine from the specified muzzle.\nIt is possible to remove magazine directly from 'Throw' muzzle provided it is configured with `keepInInventory = 0;`.\n\n> [!NOTE]\n> To add such magazine, see addWeaponItem.","syntaxes":[{"syntax":"unit removeWeaponItem [muzzle, magazine]","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"muzzle","type":"String","description":"name of the muzzle to add magazine to","type_expr":"String"},{"name":"magazine","type":"String","description":"class name of the magazine to remove","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"[muzzle, magazine]"}}],"examples":[{"code":["player removeWeaponItem [\"arifle_MX_GL_ACO_F\", \"1Rnd_HE_Grenade_shell\"];"]}],"see_also":["addWeaponItem","addPrimaryWeaponItem","addSecondaryWeaponItem","addHandgunItem","addBinocularItem","weaponsItems","handgunItems","primaryWeaponItems","secondaryWeaponItems","binocularItems","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeHandgunItem","removeBinocularItem"]}