-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Using setElementHealth on a dead ped makes it invincible #414
Comments
This comment has been minimized.
This comment has been minimized.
Dug true the sync logic a few days ago, and stumbled across this |
Edit: that was the revert commit, duh. |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The only way to respawn a ped is with setElementHealth, yet after calling setElementHealth on a dead ped, the server returns
true
forisPedDead
. You can't damage the ped any more even thoughped.health == 100
.To Reproduce
Expected behaviour
@qaisjp said:
Additional context
Do this after calling setElementHealth: setElementSyncer(a, true) and the ped will be able to take damage again, but onPedWasted isn't triggered.
From https://bugs.mtasa.com/view.php?id=8790
The text was updated successfully, but these errors were encountered: