436 {
437 InventoryLocation src = new InventoryLocation();
438 if (item.GetInventory().GetCurrentInventoryLocation(src))
439 {
441 {
444 {
445 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::LocalDestroy inv item=" + item);
447 return true;
448 }
449
450 return super.LocalDestroyEntity(item);
451
452 default:
453 return super.LocalDestroyEntity(item);
454 }
455 }
456
457 Error(
"LocalDestroyEntity: No inventory location");
458 return false;
459 }
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.
bool HandEvent(InventoryMode mode, HandEventBase e)
proto native int GetType()
returns type of InventoryLocation
void Error(string err)
Messagebox with error message.