DjSt3rios Posted June 28, 2011 Share Posted June 28, 2011 Hello guys, i have a problem.. i created an NPC(Client side), and i made it move with animations, but its not working properly, it looks like the npc is "lagging" and i cant make it work as i want.. is there any way i could fix this? or record the npc? (on foot) Thanks! Link to comment
Piorun Posted June 28, 2011 Share Posted June 28, 2011 set in this: https://wiki.multitheftauto.com/wiki/SetPedAnimation parametr "updatePosition" to true. Link to comment
DjSt3rios Posted June 28, 2011 Author Share Posted June 28, 2011 I tried it, but no luck.. actually the npc is kinda moving, but it looks like its not doing the animation... it kinda begins, then it stops etc, but npc is moving a bit, but very slowly.. anyway i will try again Link to comment
DjSt3rios Posted June 28, 2011 Author Share Posted June 28, 2011 its looping already... This is my code: npc = createPed(211, 235.90469360352, -3672.8076171875, 159.97123718262, 180) setPedAnimation( npc, "ped", "swat_run",1500, true, true) Link to comment
DjSt3rios Posted June 28, 2011 Author Share Posted June 28, 2011 I noticed that rotation is not working.. maybe bugged function? Link to comment
Piorun Posted June 28, 2011 Share Posted June 28, 2011 yes, so set rot with function "setPedRotation". Link to comment
DjSt3rios Posted June 28, 2011 Author Share Posted June 28, 2011 hmm ok well it worked.. one other animation(not walking) works fine... so walking has problem probably.. maybe any other idea? 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