449 {
451 InventoryLocation src = new InventoryLocation();
452 if (itemInHands && itemInHands.GetInventory().GetCurrentInventoryLocation(src))
453 {
455 {
458 {
459 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::ReplaceItemInHandsWithNewImpl event=" + e);
461 return true;
462 }
463
466 return true;
467
468 default:
469 Error(
"[inv] HumanInventory::ReplaceItemInHandsWithNewImpl src has to be hands");
470 return false;
471 }
472 }
473
474 Error(
"[inv] HumanInventory::ReplaceItemInHandsWithNewImpl No item in hands, event=" + e.
DumpToString());
475 return false;
476 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void hndDebugPrint(string s)
InventoryLocationType
types of Inventory Location
proto native EntityAI GetInventoryOwner()
Engine native functions.
override string DumpToString()
bool HandEvent(InventoryMode mode, HandEventBase e)
proto native EntityAI GetEntityInHands()
proto native int GetType()
returns type of InventoryLocation
void Error(string err)
Messagebox with error message.