From Bohemia Interactive Community
Hover & click on the images for description
⚠
Only available in
Development branch(es) until its release with Arma 3 patch
v2.06.
Description
- Description:
- Returns hashmap of all items in units inventory as [classname, count] pairs.
- Groups:
- Unit Inventory
Syntax
- Syntax:
- uniqueUnitItems [unit, weaponItems, uniform, vest, backpack, assignedItems]
- Parameters:
- unit: Object
- weaponItems: Number
- uniform: Number
- vest: Number
- backpack: Number
- assignedItems: Boolean
- Return Value:
- HashMap
Examples
- Example 1:
private _unitUniqueItems = uniqueUnitItems [player, 0, 2, 2, 2, true];
if (_unitUniqueItems getOrDefault ["FirstAidKit", 0] > 5) then { hint "I'm rich of FAK to give!"; };
Additional Information
- See also:
- getUnitLoadout
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