426    {
  427        InventoryLocation src = new InventoryLocation();
  428        if (item.GetInventory().GetCurrentInventoryLocation(src))
  429        {
  431            {
  434                    {
  435                        if (LogManager.IsInventoryHFSMLogEnable()) 
hndDebugPrint(
"[inv] HumanInventory::LocalDestroy inv item=" + item);
 
  437                        return true;
  438                    }
  439 
  440                    return super.LocalDestroyEntity(item);
  441 
  442                default:
  443                    return super.LocalDestroyEntity(item);
  444            }
  445        }
  446 
  447        Error(
"LocalDestroyEntity: No inventory location");
 
  448        return false;
  449    }
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.