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

◆ CheckAndExecuteStackSplitToInventoryLocation()

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

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

9802 {
9803 int slotID = il.GetSlot();
9804 float stackableTarget = item.GetTargetQuantityMax(slotID);
9805 if (stackableTarget > 0 && stackableTarget < item.GetQuantity())
9806 {
9807 ItemBase itemB;
9808 if (CastTo(itemB, item))
9809 {
9810 itemB.SplitIntoStackMaxToInventoryLocationClient(il);
9811 return true;
9812 }
9813 }
9814 return false;
9815 }
class GP5GasMask extends MaskBase ItemBase
proto native int GetSlot()
returns slot id if current type is Attachment

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

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