-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
hello,
do you mean? [...]hero ~= nil[...]
function UpdateAllyHealth()
local deltaTick = Game.Timer() - _allyHealthUpdateRate
if deltaTick >= 1 then
_allyHealthPercentage = {}
_allyHealthUpdateRate = Game.Timer()
for i = 1, LocalGameHeroCount() do
local hero = LocalGameHero(i)
if hero ~= nill and hero.isAlly and hero.alive then
_allyHealthPercentage[hero.networkID] = CurrentPctLife(hero)
end
end
end
end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels