DCS func removeItemWarehouse

From DCS World Wiki - Hoggitworld.com
Revision as of 18:13, 16 August 2023 by Grimes (talk | contribs) (Created page with "{{Template:dcs_funcs |fName= removeItem |vNum= 2.8.8 |par1= Warehouse |par2= |par3= |par4= |desc= Removes the amount of the passed item from t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Scripting Root

Envrioment: Mission Scripting
Function: removeItem Added with: 2.8.8
Member Of: Warehouse
Syntax: nothing Warehouse.removeItem(class self , string/table itemName/wsType , number count )
Description: Removes the amount of the passed item from 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: Not to be confused with missionCommands.removeItem