x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to check if target is reachable navmesh

Hi there,

I'm using a Behavior tree for my AI with a priority system where I list all types of enemies. I want to check the reach-ability of all enemies using a priority list.

However when I'm checking an enemy that is enclosed by towers (see image)

alt text

the Find Path to Location Synchronously returns true.

I'm guessing this is because it is on the navmesh but as you can see it's enclosed and it shouldn't be reachable.

As you can see here

alt text alt text The enemy is stuck on the wall but thinks he has reached the target in the middle of the wall. I want to check if the enemy between all the towers is actually reachable.

Is there something that I'm missing? Any help is greatly appreciated.

Product Version: UE 4.9
Tags:
example.png (64.5 kB)
examplev2.png (55.4 kB)
examplev3bt.png (224.0 kB)
more ▼

asked Sep 22 '15 at 10:44 AM in Blueprint Scripting

avatar image

nedled
16 1 2 3

avatar image Erasio Sep 22 '15 at 03:39 PM

Oh boy it's been a while since I worked with this.

There was something along the lines of "Can reach target" or something like this. A check if the target can be reached. I'm not sure anymore if it was a decorator, service or what exactly it was.

Sorry there is so little actual information in here. I hope you still find it and I figured it's better than nothing :)

Cheers

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

1 answer: sort voted first

To add onto what Erasio was saying.

When you character is told to navigate the path, you can pull from this node to know if it has not reached its destination.

https://docs.unrealengine.com/latest/INT/BlueprintAPI/AI/Navigation/HasPartialPath/index.html

Another option is Find Path to Actor/Location Synchronously which returns a Navigation Path. This can also check if its Partial.

alt text

-Peace

partialpath.png (41.1 kB)
more ▼

answered Sep 29 '15 at 07:04 AM

avatar image

PeterLNewton
2.1k 75 37 111

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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