1763 {
1765 if( deferred_take_to_dst )
1766 {
1767 #ifdef ENABLE_LOGGING
1769 {
1771 }
1772 #endif
1773
1774 deferred_take_to_dst.ClearInventoryReservation(this);
1775
1777 {
1779 }
1780
1781 switch (deferred_take_to_dst.m_mode)
1782 {
1784 #ifdef ENABLE_LOGGING
1786 {
1788 }
1789 #endif
1790
1791 if (LocationCanMoveEntity(deferred_take_to_dst.m_src,deferred_take_to_dst.m_dst))
1792 {
1794 LocationSyncMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst);
1795 }
1796 else
1797 {
1798 #ifdef ENABLE_LOGGING
1800 {
1802 }
1803 #endif
1804 }
1805 break;
1807 #ifdef ENABLE_LOGGING
1809 {
1811 }
1812 #endif
1813
1814 if (LocationCanMoveEntity(deferred_take_to_dst.m_src, deferred_take_to_dst.m_dst))
1815 {
1820 }
1821 else
1822 {
1823 #ifdef ENABLE_LOGGING
1825 {
1827 }
1828 #endif
1829 }
1830 break;
1832 #ifdef ENABLE_LOGGING
1834 {
1836 }
1837 #endif
1838 break;
1840 #ifdef ENABLE_LOGGING
1842 {
1844 }
1845 #endif
1846 break;
1847 default:
1848 Error(
"HandEvent - Invalid mode");
1849 break;
1850 }
1851 }
1852 }
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.