{"name":"removeAllAssignedItems","title":"removeAllAssignedItems","type":"command","url":"https://community.bistudio.com/wiki/removeAllAssignedItems","revid":352419,"updated":"2024-02-09T15:26:08Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"local","effect":"global"},"description":"Unassigns and deletes all linked items from inventory.\nThe commands operates on assignedItems array, which does not include goggles or headgear but includes binoculars, which is a weapon.\nUse removeGoggles and removeHeadgear for those.","syntaxes":[{"syntax":"removeAllAssignedItems unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"unit"}},{"syntax":"removeAllAssignedItems [unit, allItems, includeBinocs]","since":"arma3 2.14","params":[{"name":"unit","type":"Object","description":"soldier","type_expr":"Object"},{"name":"allItems","type":"Boolean","description":"true to include all slot items, false exclude goggles and headgear","type_expr":"Boolean"},{"name":"includeBinocs","type":"Boolean","description":"true to include binoculars (which is a weapon), false to exclude it","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"[unit, allItems, includeBinocs]"}}],"examples":[{"code":["removeAllAssignedItems player;"]}],"see_also":["assignedItems","linkItem","unlinkItem","assignItem","unassignItem","addItem","removeItem","removeAllContainers"]}