capitanazop Posted January 4, 2009 Posted January 4, 2009 hi well im creating a new Gameplay Like vc:mp when you shot a player with a Shotgun his droped to the floor (fall) and you can jump like vc:mp to left and right but y need help with the fall system, i need to finish the animation but dont exist a stopanimation function why can i do? this is the code. function playerDamage ( thePlayer, attacker, weapon, bodypart, loss ) if ( weapon == 25 ) then setPedAnimation( thePlayer, "SUNBATHE", "Lay_Bac_out", -1, false, true, false ) end end addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage ) and how you think i can make the jump system? with what function? bye and sorry for my english im lerning |||||||||||||||||||||DanieloX|||||||||||||||||||||||
therenex Posted January 9, 2009 Posted January 9, 2009 On line 4, the 4th argument defines how many times the animation plays. Put 1 and the animation will play just 1 time. -1 is for infinite repetitions. I can't really understand what you say. I think that is what you want.
arc_ Posted January 12, 2009 Posted January 12, 2009 You can stop animations forcefully by calling setPedAnimation(player, nil, nil). setElementVelocity seems like a good candidate for implementing sideways jumping.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now