1022    {
 1023        
 1025        
 1026        if (newLevel == GameConstants.STATE_RUINED)
 1027        {
 1028            if (parent)
 1029            {
 1030                parent.OnAttachmentRuined(this);
 1031            }
 1032            if (!zone)
 1033            {
 1035            }
 1037        }
 1038    }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
 
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
 
void OnDamageDestroyed(int oldLevel)
Called when the health gets to the min value, 'oldLevel' is previous health level,...
 
void AttemptDestructionBehaviour(int oldLevel, int newLevel, string zone)