Arma 3 Scripting

items

  • Global argument
  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · Markdown · JSON · 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.