Jump to content

ped doesn't go forwards


Skream

Recommended Posts

I have the following code

 

			local angleFromCoords = (-math.deg(math.atan2(targetX - sourceX, targetY - sourceY))) % 360
	
			setElementRotation(thePed, 0, 0, angleFromCoords)
			setPedAimTarget(thePed, targetX, targetY, targetZ + .2)
			setPedLookAt(thePed, targetX, targetY, targetZ + .2)

the ped points to my player and fire all fine. The problem is if I use setPedControlState forwards it just runs like a michael jacksons moonwalk even still lookin to my player

Link to comment
6 minutes ago, IIYAMA said:

Can you be more specific? I  tried setting setPedCameraRotation same as angleFromCoords before but it didn't work for me (same moonwalk ocurring)
I tried setting it that angle + 180 and still same problem

18 minutes ago, IIYAMA said:

@edit 

thanks man found this https://bugs.mtasa.com/view.php?id=7349

  • Like 1
Link to comment

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