SA-MP Forums Archive
Check players facing angle. - 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: Check players facing angle. (/showthread.php?tid=85837)



Check players facing angle. - Yoyoyo - 09.07.2009

How can I check the players facing angle.
Then see if the angle is more facing north or south.
Then put that in a varriable then i can do something like

if(north == 1) {

or if(south == 1) {

Thx


Re: Check players facing angle. - yom - 09.07.2009

north = 0°, west = 90°, south = 180°, east = 270°

So if player angle is between 0 and 90 he look somewhere between north and west, etc.. i don't see what you need help with. Also may i ask why you need this?


Re: Check players facing angle. - Yoyoyo - 10.07.2009

Quote:
Originally Posted by 0rb
north = 0°, west = 90°, south = 180°, east = 270°

So if player angle is between 0 and 90 he look somewhere between north and west, etc.. i don't see what you need help with. Also may i ask why you need this?
Dont ask :P
Also i thought about it, the script would be nearly impossible to make it work perfect . . .

thx though