1773 {
1775 if( deferred_take_to_dst )
1776 {
1777 #ifdef ENABLE_LOGGING
1779 {
1781 }
1782 #endif
1783
1784 deferred_take_to_dst.ClearInventoryReservation(this);
1785
1787 {
1789 }
1790
1791 switch (deferred_take_to_dst.m_mode)
1792 {
1794 #ifdef ENABLE_LOGGING
1796 {
1798 }
1799 #endif
1800
1801 if (LocationCanMoveEntity(deferred_take_to_dst.m_src,deferred_take_to_dst.m_dst))
1802 {
1804 LocationSyncMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst);
1805 }
1806 else
1807 {
1808 #ifdef ENABLE_LOGGING
1810 {
1812 }
1813 #endif
1814 }
1815 break;
1817 #ifdef ENABLE_LOGGING
1819 {
1821 }
1822 #endif
1823
1824 if (LocationCanMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst))
1825 {
1830 }
1831 else
1832 {
1833 #ifdef ENABLE_LOGGING
1835 {
1837 }
1838 #endif
1839 }
1840 break;
1842 #ifdef ENABLE_LOGGING
1844 {
1846 }
1847 #endif
1848 break;
1850 #ifdef ENABLE_LOGGING
1852 {
1854 }
1855 #endif
1856 break;
1857 default:
1858 Error(
"HandEvent - Invalid mode");
1859 break;
1860 }
1861 }
1862 }
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()
proto native DayZPlayer GetPlayer()
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()
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.