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"

Run EQS Query

Hi guys,

I have my EQS query setup and it's working pretty great in the Behavior Tree. I wanted to run a query VIA blueprint (to spawn enemies) but I can't seem to workout what to put in the parameter for "Querier".

I placed my spawner entity but it refused to work. Is there something of a specific class that needs to go in here?

Thanks

Product Version: UE 4.9
Tags:
more ▼

asked Nov 10 '15 at 08:27 AM in Blueprint Scripting

avatar image

Aussiemandias
150 14 10 16

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

2 answers: sort voted first

For everyone still interested in finding out how to run EQS queries from a blueprint: You need to "Bind Event to OnQueryFinishedEvent". Apparently, it takes a (short?) while to execute the query, and you need to wait for the results to come back.

That event will have a pin for the query instance, which you can use to get either locations, or actors.

alt text

eqs_query.png (228.6 kB)
more ▼

answered Apr 03 '16 at 03:31 PM

avatar image

bitwiseben
41 1 5 7

avatar image mtrebi Apr 28 '16 at 06:02 PM

It worked for me! Thx

avatar image Niaphim May 02 '16 at 03:50 PM

Worked for me as well, thank you! But I think it'd be better to call the bind event node on activate instead on each tick. Not sure if it'll work in this case but I feel it will be a better solution. Going to try later today.

avatar image CryShader May 31 '17 at 06:35 PM

Hi. Is there any way to pass Query Params into blueprint version? Looks like it works in Behavior Tree only. We need to run different queries on different actors. It's not very clever to make a lot of EQS_Queries when one (with parameters) is enough.

avatar image CryShader May 31 '17 at 06:41 PM

Oh, nevermind. Solution was on the surface, as always ;) EQSQuery Params in Blueprints

avatar image Two-faced Dec 11 '18 at 08:56 AM

Feelsstupidman. It's obvious that query isn't finished in the same frame (or even thread?), so you need to bind an event.

Thanks! Saved me from using awful behavior tree.

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

I haven't ran the run EQS from a blueprint yet, actually trying to find more info out myself about it now; however, I do know that the "querier" is the actor performing the EQS query, same as when you run it in a behavior tree. In the behavior tree, querier defaults to the controller running the behavior tree. You should be able to just plug a "self" pin into the querier pin and it would work, assuming you are running the node from within the blueprint you want to query from. I say should because I'm not sure if it must be a controller but I think it can be an actor.

Good luck, let me know if this helps!

more ▼

answered Dec 07 '15 at 04:16 AM

avatar image

jtsmith
1.3k 70 28 89

(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