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

◆ EquipItem()

bool LayoutHolder::EquipItem ( )
inlineprotected

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

411 {
413 return GetFocusedContainer().EquipItem();
414
415 if (CanEquip())
416 {
417 EntityAI ent = GetFocusedItem();
418 bool res = false;
419
420 if (ent)
421 {
422 res = GetGame().GetPlayer().PredictiveTakeOrSwapAttachment(ent);
423 if(!res)
424 {
425 res = GetGame().GetPlayer().PredictiveTakeEntityToInventory(FindInventoryLocationType.ATTACHMENT, ent);
426 }
427 }
428 return res;
429 }
430 return false;
431 }
class LogManager EntityAI
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
proto native DayZPlayer GetPlayer()
EntityAI GetFocusedItem()
Определения Container.c:731
Container GetFocusedContainer()
Определения Container.c:48
bool CanEquip()
Определения Container.c:560
proto native CGame GetGame()

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