'parasight Posted October 18, 2012 Posted October 18, 2012 Hello, when i'm executing a command for my ped to sit down, it does that. but everytime the animation is finished it moves backwards. I tried freezing myself, no luck. Is there any way to block the ped from moving during animations?
TAPL Posted October 18, 2012 Posted October 18, 2012 (edited) Freezing yourself is the way. Other way i guess you can use argument updatePosition https://wiki.multitheftauto.com/wiki/SetPedAnimation Edited October 18, 2012 by Guest
'parasight Posted October 18, 2012 Author Posted October 18, 2012 srun setPedAnimation(getPlayerFromName("Name"), "FOOD", "FF_Sit_Eat1") like I said, I did try freezing myself but no luck.
'parasight Posted October 18, 2012 Author Posted October 18, 2012 That didn't help, but I figured it out already. thanks.
myonlake Posted October 19, 2012 Posted October 19, 2012 For those who have this issue, here's an example, which shouldn't be too hard to produce yourself. bool setPedAnimation ( ped thePed [, string block=nil, string anim=nil, int time=-1, bool loop=true, bool updatePosition=true, bool interruptable=true, bool freezeLastFrame = true] ) setPedAnimation(player, "block", "animation", -1, true, false, false, true)
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