DayZ 1.27
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 строка 1058

1059 {
1060 DecreaseHealth(zoneName, healthType, value);
1061
1062 if (auto_delete)
1063 {
1064 float result_health = GetHealth(zoneName, healthType);
1065 if (result_health <= 0)
1066 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Call(GetGame().ObjectDelete, this);
1067 }
1068 }
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
float GetHealth()
Equivalent of GetHealth("", "");.
Определения Object.c:1071
proto native void DecreaseHealth(string zoneName, string healthType, float value)
Decreases health.
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native CGame GetGame()
const int CALL_CATEGORY_SYSTEM
Определения tools.c:8

Перекрестные ссылки ScriptCallQueue::Call(), CALL_CATEGORY_SYSTEM, DecreaseHealth(), CGame::GetCallQueue(), GetGame() и GetHealth().