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

◆ AttemptDestructionBehaviour()

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

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 1049

1050 {
1052 {
1053 typename destType = GetDestructionBehaviour().ToType();
1054
1055 if (destType)
1056 {
1058 {
1059 m_DestructionBehaviourObj = DestructionEffectBase.Cast(destType.Spawn());
1060 }
1061
1063 {
1064 m_DestructionBehaviourObj.OnHealthLevelChanged(this, oldLevel, newLevel, zone);
1065 }
1066 }
1067 else
1068 {
1069 ErrorEx("Incorrect destruction behaviour type, make sure the class returned in 'GetDestructionBehaviour()' is a valid type inheriting from 'DestructionEffectBase'");
1070 }
1071 }
1072 }
string GetDestructionBehaviour()
bool IsDestructionBehaviour()
ref DestructionEffectBase m_DestructionBehaviourObj
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().