Making an NPC AI move around in UE5?

Yes,
You can visualize the behavior tree in realtime while playing in editor.
One question, Is you player inside the navmesh with all NPCs? All actors need to be inside the navmesh volume on begin playing in editor. You can also add print strings in all functions you want to debug to check if those nodes are triggering.

Another topic that you can try is replace the node GetRandonPointinNavigableRadius by other options:

image
image

Hey OK yes all actors are within the navmesh at beginplay but I don’t see why the player character needs to be. But how do I vizualize behavior tree nodes?

I added print strings to all the nodes inside the only blueprint and they all fire, but this still doesn’t work.

The nodes fire but I’ll try those other ones now. Thanks L.F.A.

By the way, the get random point node successfully gets points. I printed a string with thst node’s vector output connected to it.

I tried those 3 nodes and neither work. How is this possible??

It’s really hard to tell what can be possibly wrong. I would try to create another level with a scaled plane as floor, not a landscape, and check again if works.

Just did. The navmesh is now green so I stupidly though it would finally work but nope. Looks like yet another engine breaking bug that I get but nobody else gets. I guess I’m just not aloud to learn AI

Do you know anywhere else I can post? I’m beyond desperate now. I tried Reddit but no solution. Thanks

Did you try a new project (3d person) with my files just for testing? Making an NPC AI move around in UE5? - #5 by L1z4rD89

Did you try to use BUILD from the top menu?

You could also try to the command RebuildNavigation inside the console or create a ExecuteCommand node on EventBeginPlay in the LevelBlueprint and hit play.

Oh I forgot about that link. I’ll try it tomorrow if nothing else will work. I tried building navigation and it doesn’t work. I don’t see that command pop up when I start typing.

The execute command node doesn’t do anything. What goes into the specific player input pin? And wouldn’t there be a letter and a period before the command? Thanks for the help

I read something about pawn sending components in the AI. Is that possibly it? The tutorial didn’t use them.

Also, have you tried to contact Ryan Laley, the developer of that tutorial? Perhaps he can help you out.

Thanks for the video, I’m just catching up now since I’m back on now and I think LFA covered everything I was thinking thus far. I’m going to be pondering this for a while. I’ll likely recreate it entirely following the same steps you did to see if I can replicate the issue at least.

1 Like

At the bottom you can use the EnterConsoleCommand prompt.
image

Then, when entering RebuildNavigation (no autocomplete) this will pop up in the log:

Edit: Updated my files(contains a sample project): AI_BehaviourTree.zip - Google Drive

Hey, sorry I hit a wall today. More than a year without taking a day off hit me today.

I leave comments on his videos but nobody ever responds. You think there’s another way that’s publicly available?

Oh thank you. That could really expose something. I still don’t know why the navmesh is black. I added one to a base level with just a cube for a ground and it was green, but the AI didn’t work there either. I couldn’t remember if there was something else I had to do for that level. So yeah please me know if you find anything. Thanks!

That’s unfortunate.
I know he streams a Questions Time show in this channel, perhaps once a month.

In this link, you’ll find all his social media links and public contact information.

Ok I’ll try to get a hold of him. Thanks

Great, im the meanwhile, if you want a other tutoroal serie, there is a good one from Epic Games called AI State of Mind. It xomes with a complete project for download. Just search for it here in the forums.

Oh in tbus forum? OK I’ll try that. I’m gonna look into that other one that was mentioned here first. I feel like ai is disabled but only for me lol.

Hey rebuilding navigation didn’t work. So this is what a project for me to refer to when building AI? I’m gonna download it now but I’m not sure what to do with it. Thanks for the link.