742 {
744 return true;
745
747 #ifdef ENABLE_LOGGING
748 if ( LogManager.IsInventoryReservationLogEnable() )
749 {
750 DayZPlayer player =
g_Game.GetPlayer();
751 if ( player )
752 {
753 if (item)
754 Debug.InventoryReservationLog(
"Reservation result: " + ret_val +
" - STS = " + player.GetSimulationTimeStamp() +
" / " + item.ToString() +
" / " + InventoryLocation.DumpToStringNullSafe(dst),
"n/a" ,
"n/a",
"ExtendInventoryReservation", player.ToString() );
755 else
756 Debug.InventoryReservationLog(
"Reservation result: " + ret_val +
" - STS = " + player.GetSimulationTimeStamp() +
" / null / " + InventoryLocation.DumpToStringNullSafe(dst),
"n/a" ,
"n/a",
"ExtendInventoryReservation", player.ToString() );
757 }
758 }
759 #endif
760 return ret_val;
761 }
static proto native bool ExtendInventoryReservation(EntityAI item, InventoryLocation dst, int timeout_ms)