items: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (example formatting, tweaked description so note becomes obsolete (removed note))
mNo edit summary
Line 5: Line 5:
|1.00|Game version=
|1.00|Game version=
|arg= global|Multiplayer Arguments=
|arg= global|Multiplayer Arguments=
|gr1= Unit Inventory |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 14:43, 22 September 2020

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