Hiya. I'm trying to create a function that places a "hunter" in a position hidden from the player, as close as possible (so, around a corner etc..) however I am stumped on ways to do it quickly.
I have got it done in a functional matter, but in a live scenario it updates quite slow due to having using pathfinding to check if it's an accessible location. Any alternative ideas?
See the attached photos as example.
Green is points of which are hidden from the player, and the hunter should spawn/go to, to be hidden and its accessible to the player.