501 {
503 InventoryLocation src = new InventoryLocation();
504 if (itemInHands && itemInHands.GetInventory().GetCurrentInventoryLocation(src))
505 {
507 {
510 {
511 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::ReplaceItemInHandsWithNewImpl event=" + e);
513 return true;
514 }
515
518 return true;
519
520 default:
521 Error(
"[inv] HumanInventory::ReplaceItemInHandsWithNewImpl src has to be hands");
522 return false;
523 }
524 }
525
526 Error(
"[inv] HumanInventory::ReplaceItemInHandsWithNewImpl No item in hands, event=" + e.
DumpToString());
527 return false;
528 }
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.