DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CheckAndExecuteStackSplitToInventoryLocation()

bool ManBase::CheckAndExecuteStackSplitToInventoryLocation ( InventoryLocation il,
notnull EntityAI item )
inlineprotected

См. определение в файле PlayerBase.c строка 9078

9079 {
9080 int slotID = il.GetSlot();
9081 float stackableTarget = item.GetTargetQuantityMax(slotID);
9082 if (stackableTarget > 0 && stackableTarget < item.GetQuantity())
9083 {
9084 ItemBase itemB;
9085 if (CastTo(itemB, item))
9086 {
9087 itemB.SplitIntoStackMaxToInventoryLocationClient(il);
9088 return true;
9089 }
9090 }
9091 return false;
9092 }
class GP5GasMask extends MaskBase ItemBase
proto native int GetSlot()
returns slot id if current type is Attachment

Перекрестные ссылки InventoryLocation::GetSlot().

Используется в CheckAndExecuteStackSplit() и TakeToDstImpl().