Jump to content

Death animation


Parazitas

Recommended Posts

Hello guys. im stuck in this script.. :| tying to make death animation then player gets killed in head but.. it's not working.. :/ maybe some help?

function animacija(attacker, weapon, bodypart, loss)
 if (bodypart == 9) then
setPedAnimation(source, "ped", "KO_shot_face")
end
end
addEventHandler("onPlayerWasted", getRootElement(), animacija)
 

Edited by Parazitas
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...