How do I find cover for an NPC?

The only progress I have now is a poorly scripted way to find the corners of a wall and an algorithm that tells the npc on what side of the wall to take cover.

1 Like