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

◆ ReserveInventory()

override bool HandEventBase::ReserveInventory ( )
inlineprivate

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

700 {
701 if (!m_Player.GetHumanInventory().HasInventoryReservation(m_Dst.GetItem(), m_Dst) && !m_Player.GetHumanInventory().HasInventoryReservation(m_Dst2.GetItem(), m_Dst2))
702 {
703 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst.GetItem(), m_Dst, GameInventory.c_InventoryReservationTimeoutShortMS))
704 {
705 if (m_Player.GetHumanInventory().AddInventoryReservationEx(m_Dst2.GetItem(), m_Dst2, GameInventory.c_InventoryReservationTimeoutShortMS))
706 {
707 return true;
708 }
709 else
710 {
711 m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);
712 }
713 }
714 }
715 return false;
716 }
DayZPlayer m_Player
Определения Hand_Events.c:42
ref InventoryLocation m_Dst2
src of old item in hands
Определения Hand_Events.c:565
ref InventoryLocation m_Dst
Определения Hand_Events.c:275

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

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