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

◆ DecreaseHealth() [3/3]

void IEntity::DecreaseHealth ( string zoneName,
string healthType,
float value,
bool auto_delete )
inlineprivate

Decreases health with the option of auto-deleting the object if its ruined.

Аргументы
zoneNameif empty string, sets state of global health
healthTypeif empty string, sets state of main health

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

1050 {
1051 DecreaseHealth(zoneName, healthType, value);
1052
1053 if (auto_delete)
1054 {
1055 float result_health = GetHealth(zoneName, healthType);
1056 if (result_health <= 0)
1057 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).Call(g_Game.ObjectDelete, this);
1058 }
1059 }
DayZGame g_Game
Определения DayZGame.c:4074
float GetHealth()
Equivalent of GetHealth("", "");.
Определения Object.c:1062
proto native void DecreaseHealth(string zoneName, string healthType, float value)
Decreases health.
const int CALL_CATEGORY_SYSTEM
Определения 3_Game/DayZ/tools/tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, DecreaseHealth(), g_Game и GetHealth().