---
name: "linkItem"
type: command
status: ok
groups: ["Unit Inventory"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/linkItem
revid: 369226
updated: 2024-09-03T10:34:55Z
---

# linkItem

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

Locality: arguments **global** · effect **global**

## Description

Create and assign item to the correct slot. If there is an item in the targeted slot, it gets replaced. See also [assignItem](../commands/assignItem.md).

## Syntax

```sqf
unit linkItem item
```

**Parameters:**

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

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
bluforUnit linkItem "NVGoggles";
opforUnit linkItem "NVGoggles_OPFOR";
independentUnit linkItem "NVGoggles_INDEP";
```

## See also

[unlinkItem](../commands/unlinkItem.md) · [addItem](../commands/addItem.md) · [assignItem](../commands/assignItem.md) · [removeItem](../commands/removeItem.md) · [unassignItem](../commands/unassignItem.md) · [assignedItems](../commands/assignedItems.md) · [removeAllAssignedItems](../commands/removeAllAssignedItems.md)

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