Tom_Kazansky
--- wraith it ! ---
- Reaction score
- 157
I only think of this:
A variable is attached to hero, let name it: damageSustained
Each time the hero takes damage: damageSustained = damageSustained + Damage Taken
create a timer that expires in X sec, when it does: damageSustained = damageSustained - Damage Taken
I guess this will have a problem if there are too many instances of damage taken, yes, biggest problem: too many used timers
I only plan to use this for one hero with fixed "X" but in the future, I may use for all heroes (maximum of 10, I think)
so, what do you think about this?
thank you for reading!
A variable is attached to hero, let name it: damageSustained
Each time the hero takes damage: damageSustained = damageSustained + Damage Taken
create a timer that expires in X sec, when it does: damageSustained = damageSustained - Damage Taken
I guess this will have a problem if there are too many instances of damage taken, yes, biggest problem: too many used timers
I only plan to use this for one hero with fixed "X" but in the future, I may use for all heroes (maximum of 10, I think)
so, what do you think about this?
thank you for reading!