Jump to content

[HELP] Dead anim


Recommended Posts

Posted

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

Posted

Replace "onPlayerDamage" with "onPlayerWasted" here

5e44a24416.png

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

Posted

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

Posted
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

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