public onPlayerDeath error, Not going injured... (+rep)
#3

You can not prevent death (so philosophical...), and in fact if you happen to read the callback name OnPlayerDeath it gets called when the player dies, so no, there's no error at OnPlayerDeath, it works as it's meant to.

If you want to do an injury system, you've got to spawn the player AFTER he died back on the position of where he died and apply all the needed commands and functions there, alternatively you could work it out with an scripted damage system and all but that's sort of harder to make.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)