Open ir4ne opened 1 year ago
Steps to reproduce:
SetEventHandler "OnHitWith" MyOnHitWithHandler
scn MyOnHitWithHandler
Ref target Ref weapon
begin Function { target, weapon }
PrintC "OnHitWith handler was invoked"
end
3. Launch game, hit some dead body with any melee weapon and see that there are no logs.
You said OnMagicEffectHit works in this case, what about OnHit?
OnHit does not triggers as well when hitting dead bodies (both NPCs and creatures)
Steps to reproduce:
SetEventHandler "OnHitWith" MyOnHitWithHandler
Ref target Ref weapon
begin Function { target, weapon }
end