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. 

Following path

Hello everyone, I am trying to make a character find a path to an object and follow it in a pretty complex environment (randomly generated maze). Find Path to Actor Synchronously shows that the path exists, but how can I make a character follow it? Thanks in advance.

Product Version: UE 4.13
Tags:
more ▼

asked Feb 23 '17 at 10:33 AM in Blueprint Scripting

avatar image

ale322
11 1 3 3

avatar image ale322 Feb 23 '17 at 10:47 AM

Also I am very new to the engine, so really, any help appreciated

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

2 answers: sort voted first

Found an OK ish solution, character moves. Had to set Project Settings > Navigation > Runtime Generation to Dynamic, as the new map is generated on every run, so navmesh has to be rebuilt.

more ▼

answered Feb 27 '17 at 04:20 PM

avatar image

ale322
11 1 3 3

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

"AIMoveTo" should work, just remember to add a NavMeshBoundsVolume to the maze, and make sure that your maze walls got "can ever affect navigation" set to true.

more ▼

answered Feb 23 '17 at 03:28 PM

avatar image

veccher
1.1k 31 17 66

avatar image ale322 Feb 23 '17 at 10:46 PM

Thank you very much for help. I tried doing what you suggested and checked the mentioned property, but the character would just stupidly bump into walls. Is AIMoveTo using some super primitive pathfinding algorithm?

avatar image veccher Feb 23 '17 at 10:53 PM

i'm currenctly packaging a project, what may take some hours, when i get a free time i will take a better look at this problem, it's an interesting problem, i never had problem with AIMoveTo, it works fine for me, but i've never tried to make a randonly generated maze. hope someone else help you in the meantime.

avatar image ale322 Feb 23 '17 at 10:51 PM

https://www.screencast.com/t/v5R9MEuG54gy here with red arrows I pointed the direction the character follows when i use AIMoveTo function, and with blue the direction when i use Simple Move to Actor. But both just bump into walls and stop.

(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