Difference between revisions of "DCS func getItemCount"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:dcs_funcs |fName= getItemCount |vNum= 2.8.8 |par1= Warehouse |par2= |par3= |par4= |desc= Returns the number of the passed type of i...")
 
(No difference)

Latest revision as of 17:54, 16 August 2023

Scripting Root

Envrioment: Mission Scripting
Function: getItemCount Added with: 2.8.8
Member Of: Warehouse
Syntax: number Warehouse.getItemCount(class self , string/table itemName/wsType )
Description: Returns the number of the passed type of item currently in a warehouse object.

itemName is the typeName associated with the item: "weapons.missiles.AIM_54C_Mk47"

A wsType table can also be used, however the last digit with wsTypes has been known to change. {4, 4, 7, 322}


Return Value: number
Return Example: 12345
Examples:
Related Functions: Warehouse Functions: addItem, getItemCount, setItem, removeItem, addLiquid, getLiquidAmount, setLiquidAmount, removeLiquid, getOwner, getInventory
Notes: