DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EEHealthLevelChanged()

void Entity::EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected

См. определение в файле EntityAI.c строка 1021

1022 {
1023 // Notify potential parent that this item was ruined
1024 EntityAI parent = GetHierarchyParent();
1025
1026 if (newLevel == GameConstants.STATE_RUINED)
1027 {
1028 if (parent)
1029 {
1030 parent.OnAttachmentRuined(this);
1031 }
1032 if (!zone)
1033 {
1034 OnDamageDestroyed(oldLevel);
1035 }
1036 AttemptDestructionBehaviour(oldLevel,newLevel, zone);
1037 }
1038 }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
Определения EntityAI.c:202
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)
Определения EntityAI.c:1043

Перекрестные ссылки AttemptDestructionBehaviour(), EntityAI(), GetHierarchyParent(), OnDamageDestroyed() и GameConstants::STATE_RUINED.