10.08.2016, 00:15
Hey.
I was wondering how I am supposed to prevent people from respawning once they are dead. Instead I'd like to apply an animation, and make them go into a "wounded state" kind of. How is this possible? I assume I'll somehow have to stop the player from taking damage at 2 percent health for instance, or how does it work? And how to constantly check that without affect the performance of the server in a bad way? Any suggestions?
Because right now once they die, they die - respawn quickly, then getting teleported back to their previous position and an animation gets applied. I'd like the animation to be applied, and that's it. No respawn.
I was wondering how I am supposed to prevent people from respawning once they are dead. Instead I'd like to apply an animation, and make them go into a "wounded state" kind of. How is this possible? I assume I'll somehow have to stop the player from taking damage at 2 percent health for instance, or how does it work? And how to constantly check that without affect the performance of the server in a bad way? Any suggestions?
Because right now once they die, they die - respawn quickly, then getting teleported back to their previous position and an animation gets applied. I'd like the animation to be applied, and that's it. No respawn.