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

◆ EquipItem()

bool LayoutHolder::EquipItem ( )
inlineprotected

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

407 {
409 return GetFocusedContainer().EquipItem();
410
411 if (CanEquip())
412 {
413 EntityAI ent = GetFocusedItem();
414 bool res = false;
415
416 if (ent)
417 {
418 res = g_Game.GetPlayer().PredictiveTakeOrSwapAttachment(ent);
419 if(!res)
420 {
421 res = g_Game.GetPlayer().PredictiveTakeEntityToInventory(FindInventoryLocationType.ATTACHMENT, ent);
422 }
423 }
424 return res;
425 }
426 return false;
427 }
class LogManager EntityAI
DayZGame g_Game
Определения DayZGame.c:4074
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18
EntityAI GetFocusedItem()
Определения Container.c:727
Container GetFocusedContainer()
Определения Container.c:48
bool CanEquip()
Определения Container.c:556

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