Damage
Posted: Thu Apr 19, 2007 2:47 pm
Got my player pawn up and running from last post (RFmanual). Thanks alot guys, couldn hav don it otherwise! I hav two questions for this post:
1) How do I program melee attacks into my player's script. I have tried to insert the animations by defining extra shooting animations (eg. shoot1, shoot2 etc) and then assigning them to a specific key (eg. K_PUNCH [27], K_KICK [28] etc) but so far all it does is stall my player for a couple seconds and then set him back to idle.
2) How do I set the collision detection and damage done to my opponent. I know this has to do with damageattribute, I just don know how to do it.
Much appreciated, thanks guys
1) How do I program melee attacks into my player's script. I have tried to insert the animations by defining extra shooting animations (eg. shoot1, shoot2 etc) and then assigning them to a specific key (eg. K_PUNCH [27], K_KICK [28] etc) but so far all it does is stall my player for a couple seconds and then set him back to idle.
2) How do I set the collision detection and damage done to my opponent. I know this has to do with damageattribute, I just don know how to do it.
Much appreciated, thanks guys