4087 {
4088 #ifdef ENABLE_LOGGING
4090 {
4092 }
4093 #endif
4094
4097 {
4099 {
4100 LocationSwap(src1, src2, dst1, item2_dst);
4101 return true;
4102 }
4103
4104 }
4105
4106 if(!super.ForceSwapEntities(mode,item1,item2,item2_dst))
4107 {
4109 {
4111 }
4112 }
4113
4114 return true;
4115 }
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()