1847    {
 1849        if ( parent )
 1850        {
 1851            InventoryLocation inventory_location = new InventoryLocation();
 1853            
 1854            return parent.GetInventory().GetSlotLock( inventory_location.
GetSlot() );
 
 1855        }
 1856        
 1857        return false;
 1858    }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetSlot()
returns slot id if current type is Attachment