manawydan Posted January 15, 2013 Posted January 15, 2013 is there any function to push a ped? I want to push a ped when a zombie attacks him. "Querer não é poder, mas tentar é avançar"!
psydomin Posted January 15, 2013 Posted January 15, 2013 Push? to the ground? An animation could work Currently working as a paid scripter. Contact me for details.
Castillo Posted January 15, 2013 Posted January 15, 2013 You can use: setElementVelocity San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
manawydan Posted January 15, 2013 Author Posted January 15, 2013 an example of what I want to do addEventHandler("onPlayerDamage", root, function(attacker, weapon, bodypart, loss) x, y, z = getElementPosition(source) if ( getElementData ( attacker, "zombie", true)) then movePed(source, x+2, y+2, z+8) end end) "Querer não é poder, mas tentar é avançar"!
Castillo Posted January 15, 2013 Posted January 15, 2013 addEventHandler ( "onPlayerDamage", root, function ( attacker, weapon, bodypart, loss ) local x, y, z = getElementVelocity ( source ) if ( getElementData ( attacker, "zombie" ) ) then setElementVelocity ( source, x + 2, y + 2, z + 8 ) end end ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
manawydan Posted January 15, 2013 Author Posted January 15, 2013 Thank you. can close the topic "Querer não é poder, mas tentar é avançar"!
Castillo Posted January 15, 2013 Posted January 15, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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