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

◆ ReserveInventory()

override bool HandEventBase::ReserveInventory ( )
inlineprivate

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

653 {
654 if (!m_Player.GetHumanInventory().HasInventoryReservation(m_Dst.GetItem(), m_Dst) && !m_Player.GetHumanInventory().HasInventoryReservation(m_Dst2.GetItem(), m_Dst2))
655 {
656 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst.GetItem(), m_Dst, GameInventory.c_InventoryReservationTimeoutShortMS))
657 {
658 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst2.GetItem(), m_Dst2, GameInventory.c_InventoryReservationTimeoutShortMS))
659 {
660 return true;
661 }
662 else
663 {
664 m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);
665 }
666 }
667 }
668 return false;
669 }
DayZPlayer m_Player
Определения Hand_Events.c:42
ref InventoryLocation m_Dst2
src of old item in hands
Определения Hand_Events.c:534
ref InventoryLocation m_Dst
Определения Hand_Events.c:272

Перекрестные ссылки GameInventory::c_InventoryReservationTimeoutShortMS, m_Dst, m_Dst2 и m_Player.

Используется в HumanInventory::ForceSwapEntities().