1966 {
1967 #ifdef ENABLE_LOGGING
1969 {
1971 }
1972 #endif
1973
1976 {
1978 {
1979 LocationSwap(src1, src2, dst1, item2_dst);
1980 return true;
1981 }
1982
1983 }
1984
1985 if(!super.ForceSwapEntities(mode,item1,item2,item2_dst))
1986 {
1988 {
1990 }
1991 }
1992
1993 return true;
1994 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
override bool PostDeferredForceSwapEntities(InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)
DayZPlayer GetDayZPlayerOwner()
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static bool MakeSrcAndDstForForceSwap(notnull EntityAI item1, notnull EntityAI item2, out InventoryLocation src1, out InventoryLocation src2, out InventoryLocation dst1, notnull InventoryLocation dst2)
helper function for ForceSwap
script counterpart to engine's class Inventory
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsInventoryMoveLogEnable()