1031 {
1033
1034 InventoryLocation src = new InventoryLocation();
1035 if (item.GetInventory().GetCurrentInventoryLocation(src))
1036 {
1037 InventoryLocation dst = new InventoryLocation();
1038
1039 if (target.GetInventory().FindFreeLocationFor(item, flags, dst))
1041
1042 if (LogManager.IsInventoryMoveLogEnable())
inventoryDebugPrint(
"[inv] I::Take2Target(" +
typename.EnumToString(
InventoryMode, mode) +
") target=" + target +
" item=" + item +
" Warning - no room for item in target");
1043 return false;
1044 }
1045 Error(
"[inv] I::Take2Target(" +
typename.EnumToString(
InventoryMode, mode) +
") target=" + target +
" item=" + item +
" Error - src has no inventory location");
1046 return false;
1047 }
void inventoryDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
bool TakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
move src to dst
void Error(string err)
Messagebox with error message.