Arma 3 Scripting

Command in Unit Inventory

assignedItems

Also available as Markdown and JSON, or read the original wiki page.

Description

Get array with assigned items. The resulting Array order is not guaranteed. To check availability of a particular slot item use getSlotItemName. To return stored items see items and itemsWithMagazines.

Syntax

Syntax 1

assignedItems unit

Parameters:

Returns: Array of Strings

Syntax 2

since arma3 2.14

assignedItems [unit, allItems, includeBinocs]

Parameters:

Returns: Array of Strings

Examples

Example 1

hint str assignedItems player;

See also

getSlotItemName · assignItem · unassignItem · linkItem · unlinkItem · addItem · removeItem · removeAllAssignedItems · items · itemsWithMagazines · backpacks

Community notes

Druid

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