NPC search for cover

How Can I make my soldier NPC find cover?

I have a current “find cover system” where it uses Region3 through a folder with all the pathfinding nodes, then its paths to the closest one that the player cannot see. But that isn’t really cover and most of the time the player can just move an inch to the left and see them, as it just uses a ray from that node to the character to detect if it is out of the way.

How can I do this properly?

1 Like