Hale Posted July 11, 2016 Share Posted July 11, 2016 Hi again. I freezed my ped with setElementFrozen and it works fine, but once I use setPedAnalogControlState (to make him walk) the ped starts walking but he's bugging out, is there any way to fix that? Link to comment
Captain Cody Posted July 11, 2016 Share Posted July 11, 2016 Set him unfroozen when you make him walk Link to comment
Hale Posted July 11, 2016 Author Share Posted July 11, 2016 I didn't explain myself quite right... What I want is the ped to walk in place, without bugging out. Link to comment
Captain Cody Posted July 11, 2016 Share Posted July 11, 2016 Ohh. What does the bug look like? Link to comment
Hale Posted July 11, 2016 Author Share Posted July 11, 2016 The ped walks as expected, but his xyz jumps around a few points (max ~0.5) all the time. Link to comment
Captain Cody Posted July 11, 2016 Share Posted July 11, 2016 try this - (Remove the setElementFrozen) local x,y,z = -- PUT PEDS X,Y,Z cords here function setItsLocation() setElementLocation(ped,x,y,z) end setTimer ( setItsLocation, 50, 1 ) Ever 50 milsecounds it sets the peds locations Link to comment
Bean666 Posted July 11, 2016 Share Posted July 11, 2016 try this - (Remove the setElementFrozen) local x,y,z = -- PUT PEDS X,Y,Z cords here function setItsLocation() setElementLocation(ped,x,y,z) end setTimer ( setItsLocation, 50, 1 ) Ever 50 milsecounds it sets the peds locations do you mean setElementPosition or thats normal? Link to comment
Captain Cody Posted July 11, 2016 Share Posted July 11, 2016 Yes set element position, sorry wrote that at 11 pm. Link to comment
Hale Posted July 14, 2016 Author Share Posted July 14, 2016 I found a better solution (mapped objects around him and set their alpha to 0) but thanks for your help! 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