OnPlayerGiveDamage / TakeDamage
#1

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
Reply


Messages In This Thread
OnPlayerGiveDamage / TakeDamage - by PrawkC - 09.01.2012, 23:09
Re: OnPlayerGiveDamage / TakeDamage - by [HiC]TheKiller - 09.01.2012, 23:27
Re: OnPlayerGiveDamage / TakeDamage - by PrawkC - 09.01.2012, 23:41
Re: OnPlayerGiveDamage / TakeDamage - by Pottus - 15.09.2012, 06:24

Forum Jump:


Users browsing this thread: 2 Guest(s)