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

◆ SetHealthLevel()

void IEntity::SetHealthLevel ( int healthLevel,
string zone = "" )
inlineprivate

Sets specific health level. It will use the cutoff value as returned by 'GetHealthLevelValue' as the health value for the given health level, which means it will always be set to the max health as allowed by the given health level.

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

1097 {
1098 SetHealth01(zone,"", GetHealthLevelValue(healthLevel, zone));
1099 }
proto native float GetHealthLevelValue(int healthLevel, string zone="")
Returns cutoff value for health level specified in object's config class parameter healthLevels.
void SetHealth01(string zoneName, string healthType, float coef)
Sets health relative to its maximum.
Определения Object.c:1109

Перекрестные ссылки GetHealthLevelValue() и SetHealth01().

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