onPlayerHealthChange

Getting triggered when player health changes

Prototypes
onPlayerHealthChange(callback) -- callback = function(healthPercent)
Parameters
    • function(healthPercent): callback function
      • healthPercent: healthPercent of player (integer value)
Usage
local spellName = "Exura"
onPlayerHealthChange(function(healthPercent)
  if healthPercent < 99 then
    say(spellName)
  end
end)