I am struggling to find a way to check if a location is within the navmesh.
Here is what I want to do: I got an AI Character that will run away from the player if it is attacked. If it reaches the bounds of the navmesh and the next waypoint would be outside the navmesh, the AI should do something else.
I tried using Is Valid AILocation but it always returns true, even if the point is definitely not inside the navmesh.
I checked the other answers on here but none of them helped me out.
nav is to recognize the area where you can walk the ai.
but you can put a collision box where you create an event to end overlap so that when you do leave the stop walk or do anything else.
Yeah, I had a similar idea but the ai character cannot leave the nav mesh and therefore the begin/end overlap event never fires for the nav mesh bounds.