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

◆ EquipItem()

override bool ZombieContainer::EquipItem ( )
inlineprotected

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

610 {
611 if (CanEquip())
612 {
613 if ( GetFocusedContainer().IsInherited( ContainerWithCargo ) || GetFocusedContainer().IsInherited( ContainerWithCargoAndAttachments ) )
614 {
615 return GetFocusedContainer().EquipItem();
616 }
617 else
618 {
619 EntityAI item = GetFocusedItem();
620 if( item )
621 {
622 GetGame().GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.ATTACHMENT, item );
623 return true;
624 }
625 }
626 }
627 return false;
628 }
class LogManager EntityAI
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
proto native DayZPlayer GetPlayer()
override EntityAI GetFocusedItem()
Определения CargoContainer.c:733
proto native CGame GetGame()

Перекрестные ссылки Container::GetFocusedItem(), GetGame() и CGame::GetPlayer().