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