itemsWithMagazines: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) m (global args) |
m (template:command argument fix) |
||
Line 13: | Line 13: | ||
|p1= unit: [[Object]] |= Parameter 1 | |p1= unit: [[Object]] |= Parameter 1 | ||
| [[Array]] |= | | [[Array]] |RETURNVALUE= | ||
Line 28: | Line 28: | ||
"ToolKit", //item | "ToolKit", //item | ||
"MineDetector" //item | "MineDetector" //item | ||
]</code>|= | ]</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[removeAllItemsWithMagazines]] |= | | [[removeAllItemsWithMagazines]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:34, 7 April 2019
Description
- Description:
- Returns combined array including all unit's items and all unit's magazines. Loaded magazines such as currentMagazine, primaryWeaponMagazine, secondaryWeaponMagazine, handgunMagazine as well as assignedItems are excluded.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
itemsWithMagazines player //is essentially the same as items player + magazines player
[ "FirstAidKit", //item "30Rnd_65x39_caseless_mag", //magazine "16Rnd_9x21_Mag", //magazine "Chemlight_green", //magazine "HandGrenade", //magazine "ToolKit", //item "MineDetector" //item ]
Additional Information
- See also:
- removeAllItemsWithMagazines
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