SA-MP Forums Archive
how to get the rot x and y between 2 x and y points - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to get the rot x and y between 2 x and y points (/showthread.php?tid=197967)



how to get the rot x and y between 2 x and y points - The_Gangstas - 10.12.2010

im trying to like.. sya

x1 and y1 arte the points and x2 and y2 is the player pos, i want to get the rot x y between them to make an arrow point to x1-y1

i tried

pawn Код:
new ax = atan(x1 - x2),ay = atan(y1 - y2);
;\