Jump to content

Freezing ped


Hale

Recommended Posts

Posted

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?

Posted

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

Posted
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?

Posted

I found a better solution (mapped objects around him and set their alpha to 0) but thanks for your help! :)

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