1992 {
1994 float split_quantity_new = Math.Floor(quantity / 2);
1995
1997 return;
1998
1999 InventoryLocation invloc = new InventoryLocation;
2001
2003 new_item = player.CreateCopyOfItemInInventoryOrGroundEx(this, true);
2004
2005 if (new_item)
2006 {
2007 if (new_item.GetQuantityMax() < split_quantity_new)
2008 {
2009 split_quantity_new = new_item.GetQuantityMax();
2010 }
2012 {
2015 }
2016 else if (split_quantity_new > 1)
2017 {
2019 new_item.
SetQuantity(split_quantity_new,
false,
true);
2020 }
2021 }
2022 }
eBleedingSourceType GetType()
FindInventoryLocationType
flags for searching locations in inventory
InventoryLocationType
types of Inventory Location
override float GetQuantity()
bool AddQuantity(float value, bool destroy_config=true, bool destroy_forced=false)
add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
bool ShouldSplitQuantity(float quantity)
proto native bool IsValid()
verify current set inventory location
proto native int GetType()
returns type of InventoryLocation
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)