Jump to content

Rotation?


Bean666

Recommended Posts

How do I make a ped facing towards me? ex:

ik getElementPosition wont work with rotations but how do I get a ped to know my position and face towards it?

local pedTest = createPed(34, -454.654296875, 2716.099609375, 63.490333557129)

function testRotate()
  	local x, y, z = getElementPosition(localPlayer) 
	setElementRotation( pedTest, x, y, z )
end 

 

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