items: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\<dt class\=\"note\"\>\'\'\'\[\[(.*)\]\]\'\'\'" to "<dt class="note">$1")
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns an array of names of all special items of a vehicle or a soldier. |DESCRIPTION=
| Returns an array of names of all stored items of a vehicle or a soldier, including [[weapons]] but excluding [[magazines]] (see [[itemsWithMagazines]]). |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 23: Line 23:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 12:16, 8 September 2020

Hover & click on the images for description

Description

Description:
Returns an array of names of all stored items of a vehicle or a soldier, including weapons but excluding magazines (see itemsWithMagazines).
Groups:
Uncategorised

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

Notes

Posted on June 18, 2013 - 14:20
Druid
Arma 3, version 0.70 - magazines, explosives, grenades and all items currently linked on the unit are not returned now.

Bottom Section