1972 {
1974 return;
1975
1977 float split_quantity_new = Math.Floor(quantity / 2);
1978
1979 InventoryLocation invloc = new InventoryLocation;
1981
1983 new_item = player.CreateCopyOfItemInInventoryOrGroundEx(this, true);
1984
1985 if (new_item)
1986 {
1987 if (new_item.GetQuantityMax() < split_quantity_new)
1988 {
1989 split_quantity_new = new_item.GetQuantityMax();
1990 }
1992 {
1995 }
1996 else
1997 {
2000 }
2001 }
2002 }
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...
override bool CanBeSplit()
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)