09.01.2012, 23:09
Alright so I got a bit of an issue. I'm making a death system, you know the whole you die then appear on the ground "dieing" you accept death etc etc, but I want the user to still be able to take damage whilist on the ground, so my first thought was use an animation, as you still take damage while in one.. but for example "crack" you can just punch and get out of the animation, so then first thing comes to mind is to use TogglePlayerControllable, so I've done that and we all know you don't take damage when thats toggled, so I'm using OnPlayerGiveDamage to replicate the user taking damage, but I have to use SetPlayerHealth, so when the user dies I have to use OnPlayerDeath in the callback, But that is.. Buggy to say the least, when I use that, the person just chills there and eventually goes away.
Anyways, sorry for the wall of text.. my main question what are some ways to do this? and by this I mean have a player either be frozen on ground and still take damage, or how I can use OnPlayerGiveDamage properly and still have the kill be processed correctly through OnPlayerDeath.
Thanks,
PrawkC
Anyways, sorry for the wall of text.. my main question what are some ways to do this? and by this I mean have a player either be frozen on ground and still take damage, or how I can use OnPlayerGiveDamage properly and still have the kill be processed correctly through OnPlayerDeath.
Thanks,
PrawkC