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

◆ CheckAndExecuteStackSplitToInventoryLocation()

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

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

9177 {
9178 int slotID = il.GetSlot();
9179 float stackableTarget = item.GetTargetQuantityMax(slotID);
9180 if (stackableTarget > 0 && stackableTarget < item.GetQuantity())
9181 {
9182 ItemBase itemB;
9183 if (CastTo(itemB, item))
9184 {
9185 itemB.SplitIntoStackMaxToInventoryLocationClient(il);
9186 return true;
9187 }
9188 }
9189 return false;
9190 }
class GP5GasMask extends MaskBase ItemBase
proto native int GetSlot()
returns slot id if current type is Attachment

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

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