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"

Is it possible to instantiate Environment Query contexts?

I have multiple AI with a few EQS queries set up. All works fine but I was wondering how the EQS points are created and how I could reduce the impact of having 50+ AI running my queries.

One of my AI is a small hunt-able animal, when it is aware of the player it runs away, otherwise is picks the closest "roaming area", moves to a random point around it, waits, and does it again until the player spooks it. All of this works fine and is implemented well enough.

However, I realized that each time the query is run, it recalculates the context and makes a new projection of all the points that need to be scored. This works fine for the running away query, since the position of the player (which is my context actor) will likely be different each time the query is run. When it comes to the roaming query tho, the roaming areas and their navmesh are fixed.

Is there a way to generate the context and the surrounding EQS points once, save them somehow, and then reuse the generated points every time an AI runs the query?

PS: I am trying to look into FEnvQueryInstance, but there is very little documentation, and from what I understand it lets you save the result of a query, which is pretty much the opposite of what I want.

Product Version: UE 4.16
Tags:
more ▼

asked Jan 05 '18 at 09:45 PM in Using UE4

avatar image

PrivateAnariel
6

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

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