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"

How do I set up Avoidance Navigation for scary characters in UE4?

I'm seeing reference to "avoidance navigation" here and there. Is this about avoiding obstacles or other actors? I'm trying to figure out a way to make a character run away from other characters, ideally path finding out of the area containing the scary character without getting too close to it.

Product Version: Not Selected
Tags:
more ▼

asked Apr 17 '14 at 11:24 AM in Everything Else

avatar image

Feanix
343 16 18 26

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

1 answer: sort voted first

You have many options on how you can do that, it really is a matter of what else the characters need to do. If they are just going to run away and that's it you might just want to hard code that behavior on their AI Controller, on them being within range and sight of the scary character, test for that periodically within the tick function, pick a destination somewhere away from them and then call the move to on it.

If there is other behavior as well you really should spend the little bit of time and set up a system so you can add more behaviors easy, such as a behavior tree system. These items you mentioned would be in the tree as seperate nodes, sensing for the scary characters, finding a good location to flee too, then fleeing.

There is a lot of design in doing AI, UE4 provides behavior trees with a visual editor which makes it easy to try out changes once the system is setup. It will require some effort on your part to set it up. Check the forums for the threads on behavior trees, there are scattered instructions and suggestions only at this point. Epic is working on documentation but it hasn't been publized yet.

more ▼

answered Apr 17 '14 at 04:59 PM

avatar image

mikepurvis
2.5k 101 65 260

(comments are locked)
10|2000 characters needed characters left
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