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

◆ AttemptDestructionBehaviour()

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

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

1069 {
1071 {
1072 typename destType = GetDestructionBehaviour().ToType();
1073
1074 if (destType)
1075 {
1077 {
1078 m_DestructionBehaviourObj = DestructionEffectBase.Cast(destType.Spawn());
1079 }
1080
1082 {
1083 m_DestructionBehaviourObj.OnHealthLevelChanged(this, oldLevel, newLevel, zone);
1084 }
1085 }
1086 else
1087 {
1088 ErrorEx("Incorrect destruction behaviour type, make sure the class returned in 'GetDestructionBehaviour()' is a valid type inheriting from 'DestructionEffectBase'");
1089 }
1090 }
1091 }
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().