{"name":"removeAllPrimaryWeaponItems","title":"removeAllPrimaryWeaponItems","type":"command","url":"https://community.bistudio.com/wiki/removeAllPrimaryWeaponItems","revid":310215,"updated":"2022-05-05T13:10:44Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"0.70"},"since":"arma3 0.70","arma3_since":"0.70","locality":{"argument":"local","effect":"global"},"description":"Removes all items from primaryWeapon, except magazine.","syntaxes":[{"syntax":"removeAllPrimaryWeaponItems unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"unit"}}],"examples":[{"code":["removeAllPrimaryWeaponItems player;"]}],"see_also":["addPrimaryWeaponItem","removePrimaryWeaponItem","removeAllSecondaryWeaponItems","removeAllHandgunItems","removeAllBinocularItems"]}