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

◆ CheckAndExecuteStackSplitToInventoryLocation()

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

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

9427 {
9428 int slotID = il.GetSlot();
9429 float stackableTarget = item.GetTargetQuantityMax(slotID);
9430 if (stackableTarget > 0 && stackableTarget < item.GetQuantity())
9431 {
9432 ItemBase itemB;
9433 if (CastTo(itemB, item))
9434 {
9435 itemB.SplitIntoStackMaxToInventoryLocationClient(il);
9436 return true;
9437 }
9438 }
9439 return false;
9440 }
class GP5GasMask extends MaskBase ItemBase
proto native int GetSlot()
returns slot id if current type is Attachment

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

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