Hale Posted July 11, 2016 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?
Hale Posted July 11, 2016 Author Posted July 11, 2016 I didn't explain myself quite right... What I want is the ped to walk in place, without bugging out.
Hale Posted July 11, 2016 Author Posted July 11, 2016 The ped walks as expected, but his xyz jumps around a few points (max ~0.5) all the time.
Captain Cody Posted July 11, 2016 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
Bean666 Posted July 11, 2016 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?
Captain Cody Posted July 11, 2016 Posted July 11, 2016 Yes set element position, sorry wrote that at 11 pm.
Hale Posted July 14, 2016 Author Posted July 14, 2016 I found a better solution (mapped objects around him and set their alpha to 0) but thanks for your help!
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