{"name":"assignedItems","title":"assignedItems","type":"command","url":"https://community.bistudio.com/wiki/assignedItems","revid":378170,"updated":"2026-03-03T07:06:02Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Get array with assigned items. The resulting Array order is not guaranteed.\nTo check availability of a particular slot item use getSlotItemName.\nTo return stored items see items and itemsWithMagazines.","syntaxes":[{"syntax":"assignedItems unit","params":[{"name":"unit","type":"Object","type_expr":"Object"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>"},"form":"unary","right":{"text":"unit"}},{"syntax":"assignedItems [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":"Array of Strings","type_expr":"Array<String>"},"form":"unary","right":{"text":"[unit, allItems, includeBinocs]"}}],"examples":[{"code":["hint str assignedItems player;"]}],"see_also":["getSlotItemName","assignItem","unassignItem","linkItem","unlinkItem","addItem","removeItem","removeAllAssignedItems","items","itemsWithMagazines","backpacks"],"notes":[{"user":"Druid","date":"2013-06-18T14:26:00Z","text":"Arma 3, version 0.70 - headgear and goggles are not present in returned array now."},{"user":"Killzone_Kid","date":"2013-08-22T17:52:00Z","text":"For head gear use headgear, addHeadgear and removeHeadgear. For goggles use goggles, addGoggles and removeGoggles"}]}