detect a player in front - 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: detect a player in front (
/showthread.php?tid=665009)
detect a player in front -
screecher - 19.03.2019
need to detect a player in front for npcs.i can't use language to describe that...so look at the image,it mor like that:
now i want to check if PLAYER1 in area,any good idea?
Re: detect a player in front -
L0K3D - 19.03.2019
https://forum.sa-mp.com/showpost.php...84&postcount=2
Easier than using math you can use areas
Re: detect a player in front -
screecher - 19.03.2019
Quote:
Originally Posted by L0K3D
|
you're right,i also tried GetXYInFrontOfPlayer and IsPlayerInRangeOfPoint,but they gave me a circle area not sector area
may you tell me it in more detail?