---
name: "assignedItems"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/assignedItems
revid: 378170
updated: 2026-03-03T07:06:02Z
---

# assignedItems

*Command · Unit Inventory · Arma 3 v0.50*

## Description

Get array with assigned items. The resulting [Array](../topics/Array.md) order is not guaranteed.
To check availability of a particular slot item use [getSlotItemName](../commands/getSlotItemName.md).
To return stored items see [items](../commands/items.md) and [itemsWithMagazines](../commands/itemsWithMagazines.md).

## Syntax

### Syntax 1

```sqf
assignedItems unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s

### Syntax 2

*since arma3 2.14*

```sqf
assignedItems [unit, allItems, includeBinocs]
```

**Parameters:**

- `unit`: [Object](../topics/Object.md) - soldier
- `allItems`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to include all slot items, [false](../commands/false.md) exclude goggles and headgear
- `includeBinocs`: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) to include binoculars (which is a weapon), [false](../commands/false.md) to exclude it

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s

## Examples

### Example 1

```sqf
hint str assignedItems player;
```

## See also

[getSlotItemName](../commands/getSlotItemName.md) · [assignItem](../commands/assignItem.md) · [unassignItem](../commands/unassignItem.md) · [linkItem](../commands/linkItem.md) · [unlinkItem](../commands/unlinkItem.md) · [addItem](../commands/addItem.md) · [removeItem](../commands/removeItem.md) · [removeAllAssignedItems](../commands/removeAllAssignedItems.md) · [items](../commands/items.md) · [itemsWithMagazines](../commands/itemsWithMagazines.md) · [backpacks](../commands/backpacks.md)

## Community notes

**Druid** — 2013-06-18

Arma 3, version 0.70 - headgear and goggles are not present in returned array now.

---

**Killzone_Kid** — 2013-08-22

For head gear use [headgear](../commands/headgear.md), [addHeadgear](../commands/addHeadgear.md) and [removeHeadgear](../commands/removeHeadgear.md). For goggles use [goggles](../commands/goggles.md), [addGoggles](../commands/addGoggles.md) and [removeGoggles](../commands/removeGoggles.md)

<sub>Source: [BI Community Wiki — assignedItems](https://community.bistudio.com/wiki/assignedItems) (revision 378170).</sub>
