Furious^ONE! Posted July 6, 2016 Share Posted July 6, 2016 Hello i want made a script animation after shot in head please Link to comment
Bean666 Posted July 6, 2016 Share 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) Link to comment
Walid Posted July 6, 2016 Share Posted July 6, 2016 Replace "onPlayerDamage" with "onPlayerWasted" here and change the event arguments. Link to comment
Bean666 Posted July 6, 2016 Share 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 Link to comment
Walid Posted July 6, 2016 Share 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. Link to comment
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