Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AI can't detect navigation mesh. How to fix?

Hi! I have a problem with AI navigation (before reinstalling engine all was good). In editor NavMesh look normal, but in debug Bot didn't show any "green". As a result Bot even can't simple move to location. Nav0 Nav1
загрузка фото

Please, help to understand what is wrong and how to fix it.

Product Version: UE 4.21
more ▼

asked Apr 20 '19 at 07:52 AM in Using UE4

avatar image

6 1

avatar image DonBusso Apr 20 '19 at 03:36 PM

Have you tried deleting your AI character/Nav mesh and placing it again in the level? Also double check if you AI has pawn sensing component. Was is your AI suppose to do as begin play?

avatar image DSWon Apr 20 '19 at 04:01 PM

Thx for answer! Yes, i try to delete and replace AI and Nav on map. This are print screens from Bot and AI-controller: AI0 Bot
загрузка фото

He suppose now only just move to player location (before problem he successfully patrol from point to point and chase player if he had detect it). In first print screen it show "move to". Even with no BT, just simple move to location on tick doesn't work. If some project parts can help for better understanding i can share all project (it is on starting part so it is not a problem).

avatar image DonBusso Apr 20 '19 at 04:25 PM

Try adding this custom event into your AI at begin play and see what happens.


Do you have any sort of switch for AI modes chase patrol modes? I have this done with my AI so when I place them in the world I need to setup their default state or they won't move.

avatar image DSWon Apr 20 '19 at 04:59 PM

I done as in your example: TestFail
загрузка фото
It get "Fail" and no motion. After problem started i brake lines in BT and set simple move to position.

avatar image DonBusso Apr 20 '19 at 05:18 PM

This should have worked, just remember to unplug you BT in AI controller. Seems like a problem with your BT, try running the game and see if there is any activity in your code lines.

Try creating a new AI with just the nodes I posted above.

avatar image DSWon Apr 20 '19 at 06:00 PM

I create simplest character whit only this code: Simple-Bot01
загрузка фото
In my project no result - standing on same place. But when i did same in new blank project all was good. Looks like problem is inside the project. But how to fix it?

avatar image DonBusso Apr 20 '19 at 06:05 PM

Try doing the same but instead of new project just new map. If it works on a different map then your problem is in your level blueprint, something inside must be preventing your AI from moving.

avatar image DSWon Apr 20 '19 at 06:23 PM

Thank you! That was vary good advice. On new map all work as it had. Just for future: is it possible to find what was a problem on starter map? It is not important when i create elements but on final map it will be terrible.

avatar image DonBusso Apr 20 '19 at 06:53 PM

I wish I could help but I'm fairly new to the Engine myself. I haven't even got into BT's that much, only playing around blueprint AI behavior, so far it's been great fun.

Try running your game and check what is your AI trying to do and where does the code stop. Helped me a few times when I wasn't able to locate an error in my code. It's usually a variable you forgot to reset to default state.

I tend to use a lot of print string functions to find the errors I come across. Right now I'm trying to clear out the code a bit before I build a test map for my shooter.

Good luck.

It's a bit hard when I spawn to many enemies :) https://www.youtube.com/watch?v=I1lrHk5ecQQ

avatar image DSWon Apr 20 '19 at 07:01 PM

I am using apostrophe { ' } to debug AI - it is possible to target exactly what i need (and it show BB values - helps great).

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question