items: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\| * )+\}\}" to "}}")
m (Text replacement - " {3,}\|" to " |")
Line 14: Line 14:


| [[Array]]
| [[Array]]


|x1= <code>_itemsPlayer <nowiki>=</nowiki> [[items]] [[player]]; </code>
|x1= <code>_itemsPlayer <nowiki>=</nowiki> [[items]] [[player]]; </code>


|x2= <code>[[player]] [[sideChat]] [[format]] ["%1", [[items]] [[player]]];</code>
|x2= <code>[[player]] [[sideChat]] [[format]] ["%1", [[items]] [[player]]];</code>


| [[itemsWithMagazines]], [[assignedItems]], [[primaryWeaponItems]], [[secondaryWeaponItems]]
| [[itemsWithMagazines]], [[assignedItems]], [[primaryWeaponItems]], [[secondaryWeaponItems]]

Revision as of 17:37, 18 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
items unit
Parameters:
unit: Object
Return Value:
Array

Examples

Example 1:
_itemsPlayer = items player;
Example 2:
player sideChat format ["%1", items player];

Additional Information

See also:
itemsWithMagazinesassignedItemsprimaryWeaponItemssecondaryWeaponItems

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note