Arma 3 Scripting

Command in Unit Inventory

items

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

Description

Returns an array of names of all unit's stored items, including weapons but excluding magazines (see itemsWithMagazines) and assignedItems.

Syntax

items unit

Parameters:

Returns: Array of Strings

Examples

Example 1

_itemsPlayer = items player;

Example 2

player sideChat format ["%1", items player];

See also

itemsWithMagazines · assignedItems · primaryWeaponItems · secondaryWeaponItems · backpacks

Community notes

comp_uter15776

When using items on a player; any equipped primary/secondary weapon/launchers, as well as certain throwables i.e. chemlights, smokes, grenades etc. are not returned. For weapons and launchers that aren't stored inside a uniform, backpack or vest use weaponsItems. For throwables use magazines.