Difference between revisions of "DCS func getInventory"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:dcs_funcs |fName= getInventory |vNum= 2.8.8 |par1= Warehouse |par2= |par3= |par4= |desc= Returns a full itemized list of everything...")
 
(No difference)

Latest revision as of 18:19, 16 August 2023

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: