xOBSE icon indicating copy to clipboard operation
xOBSE copied to clipboard

OnHealthDamage event seems raised after the damage is applied and not before

Open llde opened this issue 9 years ago • 2 comments

llde avatar Jul 13 '16 19:07 llde

Even if it's a bug, I find this useful: if the event is called after damage is applied, but before the dead is registered, we can use OnHealthDamage to restore the health and save the actor from dead. Instead, if it's called before the damage is applied, we can't restore his health (since he must still receive the damage). Since both ways could be useful, I suggest you leave OnHealthDamage untouched and create a separate event "OnPreHealthDamage".

Forlini91 avatar Jul 17 '16 16:07 Forlini91

Benvenuto a bordo Marco.

Before that we should understand what is going "wrong" with the event. However the documentation must be changed to relect that.

llde avatar Jul 17 '16 16:07 llde