2006 {
2008 if( deferred_take_to_dst )
2009 {
2010 #ifdef ENABLE_LOGGING
2012 {
2014 }
2015 #endif
2016
2017 deferred_take_to_dst.ClearInventoryReservation(this);
2018
2020 {
2022 }
2023
2024 switch (deferred_take_to_dst.m_mode)
2025 {
2027 #ifdef ENABLE_LOGGING
2029 {
2031 }
2032 #endif
2033
2034 if (LocationCanMoveEntity(deferred_take_to_dst.m_src,deferred_take_to_dst.m_dst))
2035 {
2036 #ifdef DIAG_DEVELOPER
2037 if (PluginInventoryDebug.Cast(
GetPlugin(PluginInventoryDebug)).IsLocalOnlyMoveEnable())
2038 {
2039 LocationSyncMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst);
2040 }
2041 else
2042 {
2043 #endif
2045 LocationSyncMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst);
2046 #ifdef DIAG_DEVELOPER
2047 }
2048 #endif
2049 }
2050 else
2051 {
2052 #ifdef ENABLE_LOGGING
2054 {
2056 }
2057 #endif
2058 }
2059 break;
2061 #ifdef ENABLE_LOGGING
2063 {
2065 }
2066 #endif
2067
2068 if (LocationCanMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst))
2069 {
2070 #ifdef DIAG_DEVELOPER
2071 if (PluginInventoryDebug.Cast(
GetPlugin(PluginInventoryDebug)).IsLocalOnlyMoveEnable())
2072 {
2073 LocationSyncMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst);
2074 }
2075 else
2076 {
2077 #endif
2082 #ifdef DIAG_DEVELOPER
2083 }
2084 #endif
2085 }
2086 else
2087 {
2088 #ifdef ENABLE_LOGGING
2090 {
2092 }
2093 #endif
2094 }
2095 break;
2097 #ifdef ENABLE_LOGGING
2099 {
2101 }
2102 #endif
2103 break;
2105 #ifdef ENABLE_LOGGING
2107 {
2109 }
2110 #endif
2111 break;
2112 default:
2113 Error(
"HandEvent - Invalid mode");
2114 break;
2115 }
2116 }
2117 }
void inventoryDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void EnableMovableOverride(EntityAI item)
void DeferredTakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
DayZPlayer GetDayZPlayerOwner()
PluginBase GetPlugin(typename plugin_type)
static void InventoryHFSMLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
const int c_InventoryReservationTimeoutShortMS
script counterpart to engine's class Inventory
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsInventoryHFSMLogEnable()
static bool IsInventoryMoveLogEnable()
void Error(string err)
Messagebox with error message.