{"name":"removeAllWeapons","title":"removeAllWeapons","type":"command","url":"https://community.bistudio.com/wiki/removeAllWeapons","revid":352410,"updated":"2024-02-09T15:16:20Z","groups":["Unit Inventory"],"status":"ok","games":{"ofp":"1.00","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"global"},"description":"Removes all weapons and magazines from the given unit. Does not remove items like map, compass, radio (see removeWeapon for this).\n\n> [!NOTE]\n> Does not quite work with vehicles. If you need to remove all weapons from a vehicle, remove each weapon individually (see removeWeapon).","syntaxes":[{"syntax":"removeAllWeapons unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["removeAllWeapons player;"]}],"see_also":["removeWeapon","setVehicleAmmo","clearWeaponCargo","clearMagazineCargo","removeAllItems","removeBackpack"]}