Jump to content

[HELP] Dead anim


Recommended Posts

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

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...