254 {
255 InventoryLocation src = new InventoryLocation();
256 if (item.GetInventory().GetCurrentInventoryLocation(src))
257 {
258 InventoryLocation dst = new InventoryLocation();
260 {
262 return true;
263
264 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::Take2Inv(" +
typename.EnumToString(
InventoryMode, mode) +
") item=" + item);
265 return super.TakeEntityToInventory(mode, flags, item);
266 }
267 else
268 return false;
269 }
270 Error(
"HumanInventory::TakeEntityToInventory: No inventory location");
271 return false;
272 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void hndDebugPrint(string s)
proto native bool FindFreeLocationFor(notnull EntityAI item, FindInventoryLocationType flags, out notnull InventoryLocation loc)
FindFreeLocationFor.
bool RedirectToHandEvent(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
void Error(string err)
Messagebox with error message.