3836 {
3838 if( deferred_take_to_dst )
3839 {
3840 #ifdef ENABLE_LOGGING
3842 {
3844 }
3845 #endif
3846
3847 deferred_take_to_dst.ClearInventoryReservation(this);
3848
3850 {
3852 }
3853
3854 switch (deferred_take_to_dst.m_mode)
3855 {
3857 #ifdef ENABLE_LOGGING
3859 {
3861 }
3862 #endif
3863
3864 if (LocationCanMoveEntity(deferred_take_to_dst.m_src,deferred_take_to_dst.m_dst))
3865 {
3866 #ifdef DIAG_DEVELOPER
3867 if (PluginInventoryDebug.Cast(
GetPlugin(PluginInventoryDebug)).IsLocalOnlyMoveEnable())
3868 {
3869 LocationSyncMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst);
3870 }
3871 else
3872 {
3873 #endif
3875 LocationSyncMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst);
3876 #ifdef DIAG_DEVELOPER
3877 }
3878 #endif
3879 }
3880 else
3881 {
3882 #ifdef ENABLE_LOGGING
3884 {
3886 }
3887 #endif
3888 }
3889 break;
3891 #ifdef ENABLE_LOGGING
3893 {
3895 }
3896 #endif
3897
3898 if (LocationCanMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst))
3899 {
3900 #ifdef DIAG_DEVELOPER
3901 if (PluginInventoryDebug.Cast(
GetPlugin(PluginInventoryDebug)).IsLocalOnlyMoveEnable())
3902 {
3903 LocationSyncMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst);
3904 }
3905 else
3906 {
3907 #endif
3912 #ifdef DIAG_DEVELOPER
3913 }
3914 #endif
3915 }
3916 else
3917 {
3918 #ifdef ENABLE_LOGGING
3920 {
3922 }
3923 #endif
3924 }
3925 break;
3927 #ifdef ENABLE_LOGGING
3929 {
3931 }
3932 #endif
3933 break;
3935 #ifdef ENABLE_LOGGING
3937 {
3939 }
3940 #endif
3941 break;
3942 default:
3943 Error(
"HandEvent - Invalid mode");
3944 break;
3945 }
3946 }
3947 }
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.