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 to make ai avoid each other?

So I'm trying to find a way to make the ai "aware" of each other. so if they get near each other they'll move out of the way and return to their path to the goal. I am using blueprints and not behavior trees.

Product Version: Not Selected
more ▼

asked Mar 10 '15 at 03:44 AM in Blueprint Scripting

avatar image

68 13 18 20

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

1 answer: sort voted first
more ▼

answered Mar 10 '15 at 06:35 AM

avatar image

287 21 22 36

avatar image Deventico Mar 10 '15 at 07:14 AM

Or DetourCrowdAvoidance. If you're running 4.7, you just need to reparent your AI Controller.

avatar image TorQueMoD Feb 10 '17 at 12:43 AM

Hey Deventico, Thanks for the tip, this immediately made my AI avoid each other. They still get stuck on each other quite a bit though albeit momentarily. Any idea on how to make them avoid each other by a larger radius?

avatar image deathclonic Mar 10 '15 at 05:27 PM

I cannot thank you enough for this. I was trying to figure out ways of doing avoidance with distance values and hit events and line traces and was pretty much going insane lol. I knew there had to be some hilariously simple solution but I couldn't find any documentation on it or tutorials or anything. I did see the doc you linked but it never worked because it wasn't parented to the controller lol.

I hope this will help other people too.

avatar image Warbinator Mar 28 '18 at 02:17 PM

Is it not possible to have the AIs actively influence the navmesh so that the other AIs know they can't walk in the location of the other AIs?

avatar image jaidendc Jan 29 '19 at 04:46 AM

You could add some collision to the ai so that other ai's cannot walk to its location.

(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