items: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 27: | Line 27: | ||
|x1= <code>_itemsPlayer <nowiki>=</nowiki> items player;</code> | |x1= <code>_itemsPlayer <nowiki>=</nowiki> items player;</code> | ||
|x2= <code>player sideChat format ["%1", items | |x2= <code>player sideChat format ["%1", items player];</code> | ||
|seealso= [[itemsWithMagazines]] [[assignedItems]] [[primaryWeaponItems]] [[secondaryWeaponItems]] | |seealso= [[itemsWithMagazines]] [[assignedItems]] [[primaryWeaponItems]] [[secondaryWeaponItems]] |
Revision as of 11:17, 12 May 2022
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
Examples
- Example 1:
_itemsPlayer = items player;
- Example 2:
player sideChat format ["%1", items player];
Additional Information
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
- Posted on Jan 19, 2022 - 16:01 (UTC)
- 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.