DCS func getInventory

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: getInventory Added with: 2.8.8
Member Of: Warehouse
Syntax: table Warehouse.getInventory(class self , string/table itemName/wsType )
Description: Returns a full itemized list of everything currently in a warehouse. If a category is set to unlimited then the table will be returned empty.

Aircraft and weapons are indexed by strings.

Liquids are indexed by number

0    : jetfuel
1    : Aviation gasoline
2    : MW50
3    : Diesel


Return Value: table
Return Example: {
     weapon = {},
     liquids = {},
     aircraft = {},
  }
Examples:
Related Functions: Warehouse Functions: addItem, getItemCount, setItem, removeItem, addLiquid, getLiquidAmount, setLiquidAmount, removeLiquid, getOwner, getInventory
Notes: