#Moving Player Out Of Insta-Death Pit Keeps Killing Them
1 messages ยท Page 1 of 1 (latest)
For context: I'm talking about death pits like the ones in 106 containment or HCZ Armory
I want to teleport a player out of the pit, but when I do the game, for some reason, decides the player is still being affected by pit
That lasts indefinitely
Or, in my experience, it lasts until the player moves or is updated in specific ways, like using remote admin to disable all player effects
You have to disable PitDeath effect.
btw for ServerLogsText compare the translation id
instead
@tiny mortar
but yeah PitDeath is what actually gives the death
eg
if (ev.DamageHandler is not UniversalDamageHandler universalDamageHandler || universalDamageHandler.TranslationId != DeathTranslations.Tesla.Id)
return;
๐
๐๐
you should probably use onplayerdying for zombie anti suicide and stuff
If you ev.IsAllowed = false on a dealth event, health still goes to zero, it doesn't negate damage
oh true it does execute after the person dies so
no its right before
But health is gone
wtf
wat
i thought they only had one event for player dying not multiple