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

◆ ReserveInventory()

bool ReserveInventory ( )

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

175 {
177 if (!il)
178 {
179 il = GetSrc();
180 }
181
182 if (il && !m_Player.GetHumanInventory().HasInventoryReservation(il.GetItem(),il))
183 {
184 if (m_Player.GetHumanInventory().AddInventoryReservationEx(il.GetItem(), il, GameInventory.c_InventoryReservationTimeoutShortMS))
185 {
186 return true;
187 }
188 }
189
190 return false;
191 }
DayZPlayer m_Player
Определения Hand_Events.c:42
InventoryLocation GetSrc()
Определения Hand_Events.c:80
InventoryLocation GetDst()
Определения Hand_Events.c:88
const int c_InventoryReservationTimeoutShortMS
Определения Inventory.c:713
script counterpart to engine's class Inventory
Определения Inventory.c:79
proto native EntityAI GetItem()
returns item of current inventory location
InventoryLocation.
Определения InventoryLocation.c:29

Перекрестные ссылки GameInventory::c_InventoryReservationTimeoutShortMS, HandEventBase::GetDst(), InventoryLocation::GetItem(), GetSrc() и m_Player.