NPC NavigateTo will get the NPC stuck on purple, orange and stairs

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

AI

Summary

So I tried using a custom Verse behavior to navigate an NPC to a player, but I noticed that they ll get stuck on various obstacles that other NPCs, like guards wont. Areas like a low ledge that you can vault over, a round pillar that shows as orange in navigation, and a staircase that has an unwanted bump in the navigation. Images shown below:





Steps to Reproduce

Make a custom NPC with a verse script and have them navigate through complex geometry

Expected Result

They can always find the path to the target they are bound to navigate to

Observed Result

They will get stuck in random corners and walls, as shown above

Platform(s)

All

You might want to check my bug as well so we can gain some traction that the NPC navigation is different. At a minimal, it would be helpful for Epic to detail what the NPC navigation change is even if they decide to NOT fix it. NPC Navigation fails and appears dumber than before. - #4 by kirit01011

I found that you can choose the guard’s navmesh by setting that as the default profile, and its pathfinding is extremely precise in comparison to the custom profile, maybe it includes some extra code for pathfinding and understands the types of navmesh better. It def doesn’t get stuck.

1 Like

Mine is an example of a custom NPC but this is good to know anyways.

1 Like

Temporary fix to this is using Ai Navigation Modification Device on the areas where you don’t want NPC to stuck. Adjust Navigation Modification Type on “Avoid”.

The other thing, if you have a relatively big level with complex geometry, you may need a hundreds of those :grimacing: