# Run EQS Query

**URL:** <https://forums.unrealengine.com/t/run-eqs-query/338005>\
**Category:** AI\
**Tags:** Environment-Query, EQS, unreal-engine, question, Blueprint\
**Created:** [November 10, 2015, 8:27am UTC](https://forums.unrealengine.com/t/run-eqs-query/338005 "2015-11-10T08:27:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aussiemandias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aussiemandias](https://forums.unrealengine.com/u/Aussiemandias)\
**Post date:** [November 10, 2015, 8:27am UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/1 "2015-11-10T08:27:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jtsmith](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jtsmith](https://forums.unrealengine.com/u/jtsmith)\
**Post date:** [December 7, 2015, 4:16am UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/2 "2015-12-07T04:16:14Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_db18fd9d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_db18fd9d](https://forums.unrealengine.com/u/anonymous_user_db18fd9d)\
**Post date:** [April 3, 2016, 3:31pm UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/3 "2016-04-03T15:31:31Z")

</div>

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.

 ![85063-eqs_query.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/f/2cf69bc25f80a8b3239398717319c96a456f3968.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d9f58e401](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d9f58e401](https://forums.unrealengine.com/u/anonymous_user_d9f58e401)\
**Post date:** [April 28, 2016, 6:02pm UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/4 "2016-04-28T18:02:13Z")

</div>

It worked for me! Thx

---

<div class="post-metadata">

**Author:** ![Niaphim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Niaphim](https://forums.unrealengine.com/u/Niaphim)\
**Post date:** [May 2, 2016, 3:50pm UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/5 "2016-05-02T15:50:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![CryShader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CryShader](https://forums.unrealengine.com/u/CryShader)\
**Post date:** [May 31, 2017, 6:35pm UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/6 "2017-05-31T18:35:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![CryShader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CryShader](https://forums.unrealengine.com/u/CryShader)\
**Post date:** [May 31, 2017, 6:41pm UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/7 "2017-05-31T18:41:04Z")

</div>

Oh, nevermind. Solution was on the surface, as always 😉

 ![139934-eqsquery_params_in_bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/b/c3b96a11ba0d02d630ec7c8f9b52c899cedd5271.png)

---

<div class="post-metadata">

**Author:** ![Two-faced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Two-faced](https://forums.unrealengine.com/u/Two-faced)\
**Post date:** [December 11, 2018, 8:56am UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/8 "2018-12-11T08:56:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Zodi\_X](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zodi\_X](https://forums.unrealengine.com/u/Zodi_X)\
**Post date:** [July 21, 2022, 3:36pm UTC](https://forums.unrealengine.com/t/run-eqs-query/338005/9 "2022-07-21T15:36:16Z")

</div>

Even I want to know about it
