719 {
721 return true;
722
724 #ifdef ENABLE_LOGGING
725 if ( LogManager.IsInventoryReservationLogEnable() )
726 {
727 DayZPlayer player =
g_Game.GetPlayer();
728 if ( player )
729 {
730 if (item)
731 Debug.InventoryReservationLog(
"Reservation result: " + ret_val +
" - STS = " + player.GetSimulationTimeStamp() +
" / " + item.ToString() +
" / " + InventoryLocation.DumpToStringNullSafe(dst),
"n/a" ,
"n/a",
"AddInventoryReservation", player.ToString() );
732 else
733 Debug.InventoryReservationLog(
"Reservation result: " + ret_val +
" - STS = " + player.GetSimulationTimeStamp() +
" / null / " + InventoryLocation.DumpToStringNullSafe(dst),
"n/a" ,
"n/a",
"AddInventoryReservation", player.ToString() );
734 }
735 }
736 #endif
737 return ret_val;
738 }
static proto native bool AddInventoryReservation(EntityAI item, InventoryLocation dst, int timeout_ms)