{"name":"assignedItems","operator":null,"title":"assignedItems","type":"command","url":"https://community.bistudio.com/wiki/assignedItems","revid":378170,"updated":"2026-03-03T07:06:02Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"Array of Strings","types":["Array","String"],"description":null,"text":"Array of Strings"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}},{"syntax":"assignedItems [unit, allItems, includeBinocs]","since":"arma3 2.14","effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"soldier","types":["Object"],"since":null,"text":"unit: Object - soldier"},{"name":"allItems","type":"Boolean","optional":false,"default":null,"description":"true to include all slot items, false exclude goggles and headgear","types":["Boolean"],"since":null,"text":"allItems: Boolean - true to include all slot items, false exclude goggles and headgear"},{"name":"includeBinocs","type":"Boolean","optional":false,"default":null,"description":"true to include binoculars (which is a weapon), false to exclude it","types":["Boolean"],"since":null,"text":"includeBinocs: Boolean - true to include binoculars (which is a weapon), false to exclude it"}],"returns":{"type":"Array of Strings","types":["Array","String"],"description":null,"text":"Array of Strings"},"form":"unary","operator":null,"left":null,"right":{"text":"[unit, allItems, includeBinocs]","types":["Array"]}}],"examples":[{"text":"```sqf\nhint str assignedItems player;\n```","code":["hint str assignedItems player;"]}],"multiplayer":null,"problems":null,"aliases":[],"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"}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 0.50","Scripting Commands"]}