items: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (example formatting, tweaked description so note becomes obsolete (removed note))
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns an array of names of all unit's stored items, including [[weapons]] but excluding [[magazines]] (see [[itemsWithMagazines]]). For currently assigned items see [[assignedItems]]. |DESCRIPTION=
| Returns an array of names of all unit's stored items, including [[weapons]] but excluding [[magazines]] (see [[itemsWithMagazines]]) and [[assignedItems]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 17:




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


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


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 28: Line 28:
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on June 18, 2013 - 14:20
<dt class="note">[[User:Druid|Druid]]<dd class="note">Arma 3, version 0.70 - magazines, explosives, grenades and all items currently linked on the unit are not returned now.<br>
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>


[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]

Revision as of 12:16, 8 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:
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