Furious^ONE! Posted July 6, 2016 Posted July 6, 2016 Hello i want made a script animation after shot in head please
Bean666 Posted July 6, 2016 Posted July 6, 2016 do the simple easy stuffs. function headShot(attacker, weapon, bodypart, loss) if (bodypart == 9) then setPedAnimation(source, "Category", "anim") -- more stuff here -- end end addEventHandler("onPlayerDamage", getRootElement(), headShot) Aftermath
Walid Posted July 6, 2016 Posted July 6, 2016 Replace "onPlayerDamage" with "onPlayerWasted" here and change the event arguments. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Bean666 Posted July 6, 2016 Posted July 6, 2016 but he didn't say when player dies. so basically when onPlayerDamage after "shot in the head", he can also do a timer on the killPed or if he means if the Player died then the body does animation then use onPlayerWasted, agreed on that Aftermath
Walid Posted July 6, 2016 Posted July 6, 2016 but he didn't say when player dies.so basically when onPlayerDamage after "shot in the head", he can also do a timer on the killPed or if he means if the Player died then the body does animation then use onPlayerWasted, agreed on that Both are correct and both have the bodypart argument. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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