SA-MP Forums Archive
Help with angles ? - 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: Help with angles ? (/showthread.php?tid=131426)



Help with angles ? - kazuki - 03.03.2010

Hey, i've been trying to do this for a long time now, and still cant figure it out. Can someone help me find a way to get my npc to face the clostest player in the area (already have a function to get the closest player).

I have no idea how to do this, can someone show me an example/explain how to go about doing it ?


Re: Help with angles ? - [HiC]TheKiller - 03.03.2010

There is a function called SetPlayerFacingPlayer that someone made, check in a_angles.inc.


Re: Help with angles ? - kazuki - 03.03.2010

Quote:
Originally Posted by [HiC
TheKiller ]
There is a function called SetPlayerFacingPlayer that someone made, check in a_angles.inc.
I was about to get mad and question if you knew what you were talking about, but i actually found an a_angle.inc lol.

Ty for your help m8 !