#RooTs Posted March 7, 2016 Share Posted March 7, 2016 (edited) 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 March 15, 2016 by Guest Link to comment
#RooTs Posted March 7, 2016 Author Share Posted March 7, 2016 because this happens with the animations? Link to comment
DakiLLa Posted March 8, 2016 Share Posted March 8, 2016 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
#RooTs Posted March 8, 2016 Author Share Posted March 8, 2016 @DakiLLa, for serving that. "-1" ??? Link to comment
DakiLLa Posted March 8, 2016 Share Posted March 8, 2016 According to the wiki: time: how long the animation will run for in milliseconds. Idk, I never tried to put there something else than -1. Link to comment
#RooTs Posted March 8, 2016 Author Share Posted March 8, 2016 Idk, I never tried to put there something else than -1. okay, I'll try later Link to comment
#RooTs Posted March 15, 2016 Author Share Posted March 15, 2016 @DakiLLa, thanks. solved Link to comment
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