Hello,
It’s weird… I’m using UE4.22, I started this project from the top-down template.
I want to check if the character will be able to move somewhere.
The “move to” works fine but if I check with “Find path to location Synchronously”, it doesn’t make any path at all. I tried printing the points coordinates : nothing.
I also tried to print the path length and it tells me “-1”.
The Character Blueprint :
Thanks but here, not only it’s always valid, but the path it always -1 long with 0 points. As you can see, I tried to display their coordinates and nothing comes out. Only the -1 length…
I’ve made the navmesh “dynamic”, increased the cells size and the character blocks the navigation. I had to move the character a bit and “Magic !” lol.
1 Like
Sorry I should have answered sooner !
You can find navmesh settings in project settings, Navigation Mesh. Inside it, you can set Runtime generation to Dynamic.
In Navigation system, you can also set Navigation Enforcing, Generate Navigation only around Navigation Invokers. And of course add invoker components to your AIs. It will prevent full map rebuilding. It depends on what you want to do. Most of the time, AIs only need to move a bit around them, not know the whole world.