From Bohemia Interactive Community
					 
					
					
					
					
Hover & click on the images for description
 
Description
- Description:
 
- Returns hashmap of all items in units inventory as [classname, count] pairs.
 
- Groups:
 
- Unit Inventory
 
Syntax
- Syntax:
 
- uniqueUnitItems unit
 - Parameters:
 
- unit: Object
 - Return Value:
 
- HashMap in format itemClassname (String) → amount (Number)
 
- Syntax:
 
- uniqueUnitItems [unit, weaponsItems, uniformItems, vestItems, backpackItems, assignedItems]
 - Parameters:
 
- unit: Object
 
- weaponsItems: Number - (Optional, default 2) weapons (including binoculars) and their accessories (flashlight etc), loaded magazines
 
- uniformItems: Number - (Optional, default 2)
 
- vestItems: Number - (Optional, default 2)
 
- backpackItems: Number - (Optional, default 2)
 
- assignedItems: Boolean - (Optional, default true) returns assignedItems as well as headgear and goggles
 - Return Value:
 
- HashMap in format itemClassname (String) → amount (Number)
 
Examples
- Example 1:
 - Example 2:
 
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