Jump to content

[SOLVED]setPedAnimation and Syntax


#RooTs

Recommended Posts

There is some animation that when you use them. they make you get you going floor.

but I'm using this function

setElementFrozen ( localPlayer, true ) 

this function freezes me, with bad aspect of walking yet. is there any way to fix this?

my example:

function AninSmoke() 
    setPedAnimation(source,  "SMOKING", "M_smkstnd_loop") -- Syntax? 
    setElementFrozen ( source, true ) 
end 
addEvent("onAninSmoke", true ) 
addEventHandler("onAninSmoke", getRootElement(), AninSmoke) 

Edited by Guest
Link to comment

If I understood correctly you want to freeze your ped when the animation is playing, right? If so, set the "updatePosition" argument to false:

--[[ 
loop: true 
updatePosition: false 
interruptable: false 
freezeLastFrame: false 
]] 
setPedAnimation( source, "SMOKING", "M_smkstnd_loop", -1, true, false, false, false ) 

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