-
-
Notifications
You must be signed in to change notification settings - Fork 438
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
Add event onElementHealthChange #3152
base: master
Are you sure you want to change the base?
Add event onElementHealthChange #3152
Conversation
Hi, thanks for the PR! SA changes entity health directly as well, so this implementation doesn't cover all cases. |
…b.com/znvjder/mtasa-blue into feature/on(Client)ElementHealthChange
Almost after a month's break, lol. I decided to use a server-side event only. It is the most accurate and insta calls when the health value changes. Works for player, ped, vehicle and object. |
As @Pirulax mentioned, I think it would be nice for |
Currently, regardless of the circumstances, this event will always be triggered. The parameter idea seems interesting. |
Any update? |
This PR adds the serverside event onElementHealthChange
I think this is an insignificant change for many people, but it will certainly make life easier for ours scripters.
Refers to #3136