Support Forum

How to detect if AI has a reachable path to the destination?

I have a building system and I have made it so the AI attacks the buildings if certain conditions are met but when the player rbeaks a block and runs away the AI keeps on attacking the block, this is what I would like to counter by checking if the AI has a clear path to the destination which I dont know how to check, I’ve tried a bunch of variables on the AIPath script.

Hi

You could use PathUtilities - A* Pathfinding Project

1 Like

Thanks, this was exactly what I was looking for!