Object XYZ Rotation to a point. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Object XYZ Rotation to a point. (
/showthread.php?tid=269304)
Object XYZ Rotation to a point. -
iPLEOMAX - 15.07.2011
Hello Guys, I was wondering..
How can I get the Rotation Values for an object that is moving to a certain position?
Like the arrow for GPS, but i need for other coords too. Not Just Z Rotation.
For an Example, Missiles pointing towards something.
Re: Object XYZ Rotation to a point. -
Miguel - 15.07.2011
Use
GetObjectRot and
SetObjectRot.
Re: Object XYZ Rotation to a point. -
Backwardsman97 - 16.07.2011
I have this SetObjectToFaceCords function but it isn't 100% and probably could be better.
http://pastebin.com/7pizSQB5