255 {
256 InventoryLocation src = new InventoryLocation();
257 if (item.GetInventory().GetCurrentInventoryLocation(src))
258 {
259 InventoryLocation dst = new InventoryLocation();
261 {
263 return true;
264
265 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::Take2Inv(" +
typename.EnumToString(
InventoryMode, mode) +
") item=" + item);
266 return super.TakeEntityToInventory(mode, flags, item);
267 }
268 else
269 return false;
270 }
271 Error(
"HumanInventory::TakeEntityToInventory: No inventory location");
272 return false;
273 }
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.