414 {
416 {
417 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl Item in hands, event=" + e.
DumpToString());
418 return false;
419 }
420
421 InventoryLocation dst = e.
GetDst();
422 if (dst)
423 {
425 {
428 {
429 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl event=" + e);
431 return true;
432 }
433
435 Error(
"HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl TODO");
436 return false;
437
438 default:
439 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl src has to be hands");
440 return false;
441 }
442 }
443
444 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl no dst in event, event=" + e.
DumpToString());
445 return false;
446 }
void hndDebugPrint(string s)
InventoryLocationType
types of Inventory Location
proto native EntityAI GetInventoryOwner()
Engine native functions.
override InventoryLocation GetDst()
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.