I want to create a line of sight system that checks if a ranged AI can hit / see an enemy take this picture for instance:
Here the Line of sight should fail since the archer is obscured by the wall, however:
In the above picture where the ranged Ai is on the wall, he should be able to see the target.
I have been looking online for a solution with a script to this issue but i haven’t found a good performant way
can anyone help me out? ![]()

