xOBSE
xOBSE copied to clipboard
OnHealthDamage event seems raised after the damage is applied and not before
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".
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.