1900 {
1902 if( deferred_swap_entities )
1903 {
1907 {
1909 {
1911 }
1912
1913 switch (deferred_swap_entities.
m_mode)
1914 {
1917 {
1919 LocationSwap(src1, src2, deferred_swap_entities.
m_dst1, deferred_swap_entities.
m_dst2);
1920 }
1921 else
1922 {
1923 #ifdef ENABLE_LOGGING
1925 {
1927 }
1928 #endif
1929 }
1930 break;
1931
1934 {
1941 }
1942 else
1943 {
1944 #ifdef ENABLE_LOGGING
1946 {
1948 }
1949 #endif
1950 }
1951 break;
1952
1954 break;
1955
1956 default:
1957 Error(
"SwapEntities - HandEvent - Invalid mode");
1958 }
1959 }
1960 else
1961 Error(
"SwapEntities - MakeSrcAndDstForSwap - no inv loc");
1962 }
1963 }
void inventoryDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void EnableMovableOverride(EntityAI item)
DayZPlayer GetDayZPlayerOwner()
proto native DayZPlayer GetPlayer()
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
ref InventoryLocation m_dst1
override void ClearInventoryReservation(HumanInventory inventory)
ref InventoryLocation m_dst2
const int c_InventoryReservationTimeoutShortMS
static bool MakeSrcAndDstForSwap(notnull EntityAI item1, notnull EntityAI item2, out InventoryLocation src1, out InventoryLocation src2, out InventoryLocation dst1, out InventoryLocation dst2)
helper function for swap
script counterpart to engine's class Inventory
static string DumpToStringNullSafe(InventoryLocation loc)
proto native EntityAI GetItem()
returns item of current inventory location
static bool IsInventoryMoveLogEnable()
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.