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 character to choose between different target locations?

I am new to unreal engine.I want an AI character to reach one target location and at that point, i have created an array of all possible locations AI can go and AI character should choose one among them.How can i make that possible?

Any help appreciated and thanks in advance.

Product Version: UE 4.18
more ▼

asked Feb 27 '19 at 02:02 PM in Blueprint Scripting

avatar image


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

1 answer: sort voted first

Depends. How do you want to decide where to go?

If randomly, then just select a random element of the array and MoveTo there.

If you want an AI-like logic, considering surroundings and different parameters, then you should look into Behavior Trees and the Environment Query System.

more ▼

answered Feb 27 '19 at 02:10 PM

avatar image

1.4k 5 5 7

avatar image Nebula Games Inc Mar 01 '19 at 04:30 AM

yea, or node based if they are linked somehow. But most likely you will need to involve a behavior tree or some hard-coded blueprint logic.

(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