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

◆ TakeIntoHands()

void ClosableContainer::TakeIntoHands ( notnull PlayerBase player,
notnull EntityAI item )
inlineprotected

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

411 {
412 ItemBase item_base = ItemBase.Cast( item );
413
414 if( !item.GetInventory().CanRemoveEntity() || !player.CanManipulateInventory() )
415 return;
416
417 float stackable = item_base.GetTargetQuantityMax();
418
419 if( stackable == 0 || stackable >= item_base.GetQuantity() )
420 {
421 player.PredictiveTakeEntityToHands( item );
422 }
423 else if( stackable != 0 && stackable < item_base.GetQuantity() )
424 {
425 item_base.SplitIntoStackMaxHandsClient( player );
426 }
427 }
class GP5GasMask extends MaskBase ItemBase