items: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|M...) |
Killzone Kid (talk | contribs) No edit summary |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
|game1= arma2 | |||
|version1= 1.00 | |||
|game2= arma2oa | |||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|arg= global | |arg= global | ||
|gr1= Unit Inventory | |gr1= Unit Inventory | ||
| Returns an array of names of all unit's stored items, including [[weapons]] but excluding [[magazines]] (see [[itemsWithMagazines]]) and [[assignedItems]]. | |descr= Returns an array of names of all unit's stored items, including [[weapons]] but excluding [[magazines]] (see [[itemsWithMagazines]]) and [[assignedItems]]. | ||
| [[items]] unit | |s1= [[items]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Array]] | |r1= [[Array]] | ||
|x1= <sqf>_itemsPlayer = items player;</sqf> | |||
| | |x2= <sqf>player sideChat format ["%1", items player];</sqf> | ||
| | |seealso= [[itemsWithMagazines]] [[assignedItems]] [[primaryWeaponItems]] [[secondaryWeaponItems]] [[backpacks]] | ||
}} | |||
| | {{Note | ||
|user= comp_uter15776 | |||
|timestamp= 20220119160104 | |||
|text= 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'''. | |||
}} | }} | ||
Latest revision as of 23:43, 31 January 2023
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:
- Example 2:
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.