Ai Move to often fails

Hi there,

I have a NPC who i want to go to the players pos, but is often fails. The vars are correct as is the nav mesh, but he often just fires on On Fail.

I tried to make a search for a random safe point on the nav but it still fails.

Is there a way to find out more info on why it is failing?

Instead of using the Get Random Reachable node from the Get Actor Location from the player try just using the location of the player and set your Acceptance Radius to include the 20 from the Random Reachable node. The AI may be getting no return results that are within 20 and so it returns failed…20 centimeters is an awfully small point for him to try to reach and fit in.

Make sure the Default Query Extent in the “Project Settings > Navigation System > [your agent]” matches the radius and height of your agent.

I’ve been stuck on this for HOURS and couldn’t find a single answer to this - just a bunch of people with the same problem, lol. Hopefully anyone else in need finds this.

2 Likes

Doesn’t seem to exist in 4.26

Amazing! I think this just solved my problem, and it’s the first time I’ve ever seen it mentioned.