Author Topic: Look Torwards a Point (Client-Sided)  (Read 980 times)

Simply put, I was wondering how you could look torwards a point in a client-sided script. I know you'll have to use getEyeVector() to determine where you're looking, and I also know you'll have to use a combination of turnleft(1), turnright(1), and so forth to align your camera to look torwards the point.

Problem is, I don't know how to use getEyeVector() to see if you're looking left or right of the desired point.

Example scenario (real data):
 - Desired position's vector: 11.9585 -98.931 286.312
 - Your current position's vector: 14.0712 -103.863 286.324
 - Your current eye vector: -0.0265703 0.999628 0.00613588

In the above scenario, the desired position is northwest of my character. I am facing north, so I would have to turn my camera slightly left to look at the desired position. So how do I connect the three to determine that?

If you could, please post the if tests to use and explain how they work.

I think some crappy AoT mod had something like this.

Oh, forgot about this topic.

I already solved it, and make a working (BUT LAGGY) aimbot-esque thing.
The un-lagging of the script will be a simple process. So, locking.