Similar to 'SetHealthLevel', but allows to jump up/down 'healthLevelDelta' amount of health levels from the current one. Positive values cause health level increase, therefore damage the item, and vice-versa.
См. определение в файле Object.c строка 1101
1102 {
1104 int newHealthLevel = Math.Clamp(
GetHealthLevel(zone) + healthLevelDelta,0,maxHealthLevel);
1106 }
proto native int GetHealthLevel(string zone="")
Returns global health level specified in object's config class parameter healthLevels (range is usual...
void SetHealthLevel(int healthLevel, string zone="")
Sets specific health level. It will use the cutoff value as returned by 'GetHealthLevelValue' as the ...
proto native int GetNumberOfHealthLevels(string zone="")
Returns global number of health levels specified in object's config class parameter healthLevels (ran...
Перекрестные ссылки Math::Clamp(), GetHealthLevel(), GetNumberOfHealthLevels() и SetHealthLevel().