DCS func addItem: Difference between revisions

From DCS World Wiki - Hoggitworld.com
Created page with "{{Template:dcs_funcs |fName= addItem |vNum= 2.8.8 |par1= Warehouse |par2= |par3= |par4= |desc= Adds the passed amount of a given item to the w..."
 
No edit summary
 
Line 44: Line 44:




|related=
|related= [[DCS_Class_Warehouse|'''Warehouse Functions:''']] {{listOfScriptingWarehouseFuncs}}
|notes=  
|notes=  
}}
}}
[[Category:Class Functions|addItem]]
[[Category:Class Functions|addItem]]
[[Category:Game Patch 2.8.8|addItem]]
[[Category:Game Patch 2.8.8|addItem]]

Latest revision as of 17:52, 16 August 2023

Scripting Root

Envrioment: Mission Scripting
Function: addItem Added with: 2.8.8
Member Of: Warehouse
Syntax: nothing Warehouse.addItem(class self , string/table itemName/wsType , number count )
Description: Adds the passed amount of a given item to the warehouse.

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: nothing
Return Example:
Examples:
Related Functions: Warehouse Functions: addItem, getItemCount, setItem, removeItem, addLiquid, getLiquidAmount, setLiquidAmount, removeLiquid, getOwner, getInventory
Notes: