1910 {
1912 if( deferred_swap_entities )
1913 {
1917 {
1919 {
1921 }
1922
1923 switch (deferred_swap_entities.
m_mode)
1924 {
1927 {
1929 LocationSwap(src1, src2, deferred_swap_entities.
m_dst1, deferred_swap_entities.
m_dst2);
1930 }
1931 else
1932 {
1933 #ifdef ENABLE_LOGGING
1935 {
1937 }
1938 #endif
1939 }
1940 break;
1941
1944 {
1951 }
1952 else
1953 {
1954 #ifdef ENABLE_LOGGING
1956 {
1958 }
1959 #endif
1960 }
1961 break;
1962
1964 break;
1965
1966 default:
1967 Error(
"SwapEntities - HandEvent - Invalid mode");
1968 }
1969 }
1970 else
1971 Error(
"SwapEntities - MakeSrcAndDstForSwap - no inv loc");
1972 }
1973 }
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.