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

◆ AttemptDestructionBehaviour()

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

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

1044 {
1046 {
1047 typename destType = GetDestructionBehaviour().ToType();
1048
1049 if (destType)
1050 {
1052 {
1053 m_DestructionBehaviourObj = DestructionEffectBase.Cast(destType.Spawn());
1054 }
1055
1057 {
1058 m_DestructionBehaviourObj.OnHealthLevelChanged(this, oldLevel, newLevel, zone);
1059 }
1060 }
1061 else
1062 {
1063 ErrorEx("Incorrect destruction behaviour type, make sure the class returned in 'GetDestructionBehaviour()' is a valid type inheriting from 'DestructionEffectBase'");
1064 }
1065 }
1066 }
string GetDestructionBehaviour()
Определения EntityAI.c:329
bool IsDestructionBehaviour()
Определения EntityAI.c:334
ref DestructionEffectBase m_DestructionBehaviourObj
Определения EntityAI.c:111
enum ShapeType ErrorEx
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...

Перекрестные ссылки ErrorEx, GetDestructionBehaviour(), IsDestructionBehaviour() и m_DestructionBehaviourObj.

Используется в EEHealthLevelChanged().