Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ir4ne opened this issue Nov 14, 2022 · 2 comments
Open

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

ir4ne opened this issue Nov 14, 2022 · 2 comments

Comments

@ir4ne
Copy link
Contributor

ir4ne commented Nov 14, 2022

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
  1. Launch game, hit some dead body with any melee weapon and see that there are no logs.
@llde
Copy link
Owner

llde commented Nov 15, 2022

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

@ir4ne
Copy link
Contributor Author

ir4ne commented Nov 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants