DayZ 1.29
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 g_Game.GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.ATTACHMENT, item );
623 return true;
624 }
625 }
626 }
627 return false;
628 }
class LogManager EntityAI
DayZGame g_Game
Определения DayZGame.c:3942
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18
override EntityAI GetFocusedItem()
Определения CargoContainer.c:733

Перекрестные ссылки g_Game и Container::GetFocusedItem().