Repository navigation
About the Determination of Player Death #5558
yzdjmm-unturned
started this conversation in
Show and tell
Replies: 3 comments
|
I have a suggestion: what if after a player's health drops to zero, we have a brief delay (like 0.05 seconds), and if the player's health goes above zero during that delay, we cancel the death logic, otherwise we trigger the death logic. |
0 replies
|
There will be many compatibility issues that are hard to debug. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
2026-10-13.12-13-31.mp4
Our team created a special gameplay mechanic that uses an extremely fast NPC reward table to continuously check if the player's health is below 0. If it is, a specified item is deducted and the player's health is increased.
However, during the process we ran into a problem: this code does work—players are given health the instant it drops below 0—but the death process doesn’t stop just because the health isn’t zero anymore. At lower frame rates in slow motion, what we see is that the player dies even though they still have remaining health.
Is it possible to modify the player death logic so that this gameplay mechanic can take effect?
All reactions