SA-MP Forums Archive
Obstruction Detection - 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: Obstruction Detection (/showthread.php?tid=542970)



Obstruction Detection - Crayder - 23.10.2014

Well, as the title says I want a way to detect invalid points, that was worded wrong but I can't
think of a better way to say it. Anyways, it's sorta line line of sight, I want a node projected line
from one point to the direction the player/vehicle is facing, each node would be checked to see
if the line should end there. If the line ends there that is the coords the x, y, and z would be
returned.


I had some ideas of how this would work, checking map andreas is an obvious one, and dijkstra (just like pamdex does in PathFinder)... Using dijkstra would be odd I believe, as pamdex used it, it was only used for ground level...


This is not a request, I just want to know if you guys think it's possible, and if so give some example of how it would work.


Re: Obstruction Detection - Mauzen - 23.10.2014

Theres no way to detect the LOS yet, except with MapAndreas for the ground level, as you said.