1865 {
1866 #ifdef ENABLE_LOGGING
1868 {
1870 }
1871 #endif
1872
1875 {
1877 {
1878 LocationSwap(src1, src2, dst1, dst2);
1879 return true;
1880 }
1881 }
1882
1883 if(!super.SwapEntities(mode,item1,item2))
1884 {
1886 {
1888 }
1889 }
1890 return true;
1891 }
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 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 bool IsInventoryMoveLogEnable()