llde / xOBSE

Oblivion Script extender source
243 stars 35 forks source link

OnHitWith event doesn't triggers on hitting dead bodies #186

Open ir4ne opened 1 year ago

ir4ne commented 1 year ago

Steps to reproduce:

  1. Register OnHitWith event handler SetEventHandler "OnHitWith" MyOnHitWithHandler
  2. Print something in your handler
    
    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.
llde commented 1 year ago

You said OnMagicEffectHit works in this case, what about OnHit?

ir4ne commented 1 year ago

OnHit does not triggers as well when hitting dead bodies (both NPCs and creatures)