DCS func getLiquidAmount: Difference between revisions

From DCS World Wiki - Hoggitworld.com
Created page with "{{Template:dcs_funcs |fName= getLiquidAmount |vNum= 2.8.8 |par1= Warehouse |par2= |par3= |par4= |desc= Returns the amount of the passed liquid..."
 
No edit summary
 
Line 32: Line 32:
|reqName2= liquidType
|reqName2= liquidType


|reqType3= number
|reqType3=  


|reqName3= count
|reqName3=  


|reqType4=
|reqType4=

Latest revision as of 19:18, 16 August 2023

Scripting Root

Envrioment: Mission Scripting
Function: getLiquidAmount Added with: 2.8.8
Member Of: Warehouse
Syntax: number Warehouse.getLiquidAmount(class self , number liquidType )
Description: Returns the amount of the passed liquid type within a given warehouse.
0    : jetfuel
1    : Aviation gasoline
2    : MW50
3    : Diesel


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