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"

MoveToLocation and AIMoveTo are not working correctly

Hello. I have a problem with AI. AI is chasing player correctly when there are no breaks in navmesh. But if the player goes on a platform, AI tries to reach him from bottom, although it has NavMesh next to it. Acceptance radius is 4 and AI is not close to the player. Flow is going through MoveTo but AI is just standing under the platform. I have no idea what is wrong.

alt text

Product Version: UE 4.16
Tags:
aislope.jpg (187.7 kB)
more ▼

asked Aug 18 '17 at 09:12 AM in Blueprint Scripting

avatar image

igorovid
18 1 5 8

avatar image MichaelWion Jan 22 '19 at 01:01 AM

You can use a Nav Link Proxy to have the AI go up the slope to the player. https://docs.unrealengine.com/en-us/Resources/ContentExamples/NavMesh/1_2

EDIT: Wait, I misread. You want the AI to go around the platform and up the left-most slope, but it's stopping below the player, correct? You could try adding a one-way Nav Link Proxy from the top of the platform to the bottom, which might give the AI some additional data to work with, but other than that, it should already work as-is (though it's hard to tell from the image)

avatar image Narghile Jan 22 '19 at 01:10 AM

Hard to see by drawing, but if you have a slop, is the slop too steep for the AI to travel up it?

Regards Narg

avatar image Jacky Jan 22 '19 at 01:36 AM

Is success output firing when the AI stops? Do you have Stop on Overlap checked? If your player BP has any large components(i.e. sphere collision) maybe the AI is overlapping and stopping. Uncheck that if that's the case. Also keep an eye on Movement result, see what the AI is doing when it stops there.

(comments are locked)
10|2000 characters needed characters left

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