# EQS Query Parameters

**URL:** <https://forums.unrealengine.com/t/eqs-query-parameters/52377>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [January 14, 2016, 6:44am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377 "2016-01-14T06:44:46Z")\
**Posts on this page:** 11\
**Page:** 1

<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:** [January 14, 2016, 6:44am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/1 "2016-01-14T06:44:46Z")

</div>

As you can see from the image below:

> [@](#):
>
> An Environment Query can have properties in its Generator and Tests set as Parameters, much like how Materials can have Parameters. So, by entering the names of these Parameters and setting their Values here, you can have one Environment Query that handles a broad range of scenarios.

There is absolutely no support on this subject anywhere. I have tried several ways to figure this out but have failed to find the correct way.

Question is, does anyone know how to use the Query Parameters feature so that I can pass in different values to my generator so that I can make my Query more versatile? Ultimately I would like to pass a float value from the Run EQS Query node to change the search radius of my generator.

 ![Params.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/c/ec8ce7d294a9ed2eecbe2956e0bb0984eb4a6c5c.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![ZoltanJr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanJr](https://forums.unrealengine.com/u/ZoltanJr)\
**Post date:** [January 14, 2016, 9:32am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/2 "2016-01-14T09:32:35Z")

</div>

From my attempts about 12 months ago this was only possible in C++ not in blueprints, I am not sure if this has changed by now though

---

<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:** [January 14, 2016, 9:45am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/3 "2016-01-14T09:45:58Z")

</div>

Thanks but as you can tell from the image, they exposed the ability to add parameters to the Run EQS node so I would _assume_ that it’s possible via blueprints. Then again it wouldn’t surprise me any if it was only partially implemented.

---

<div class="post-metadata">

**Author:** ![ZoltanJr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZoltanJr](https://forums.unrealengine.com/u/ZoltanJr)\
**Post date:** [January 15, 2016, 6:13am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/4 "2016-01-15T06:13:13Z")

</div>

It’s still in experimental features though correct? So I don’t know that all of it has been exposed directly to blueprints or maybe the documentation just hasn’t been done

---

<div class="post-metadata">

**Author:** ![insanerob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@insanerob](https://forums.unrealengine.com/u/insanerob)\
**Post date:** [February 16, 2016, 8:34am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/5 "2016-02-16T08:34:22Z")

</div>

I have pretty much the same issue, I think. In my query I have used parameters to define the min and max distance I would like between my pawn and the enemy pawn. The problem as far as I can tell is that the parameters are just fixed values passed from the behavior tree, whereas I would like use values from keys as the values for the parameters so the character can move closer if attacks are failing. At the moment the nasty hacky workaround I have is I have multiple copies of the same query task on the blackboard , each with different parameters set… I then use decorators to select which one of those query tasks to use ☹

rOb

---

<div class="post-metadata">

**Author:** ![DamirH](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/damirh/32/906591_2.png) [@DamirH](https://forums.unrealengine.com/u/DamirH)\
**Post date:** [February 16, 2016, 8:56am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/6 "2016-02-16T08:56:13Z")

</div>

It works just fine in BP, you just need to name the parameters in the EQS you create, similar to particle systems.

[![](https://i.imgur.com/SVbs2Sn.png) ](https://i.imgur.com/SVbs2Sn.png)

---

<div class="post-metadata">

**Author:** ![insanerob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@insanerob](https://forums.unrealengine.com/u/insanerob)\
**Post date:** [February 16, 2016, 3:41pm UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/7 "2016-02-16T15:41:40Z")

</div>

Thanks for replying DamirH . I’ll have a check tonight to make sure I’m not going blind 🙂 which version are you running btw ? I’m on 4.10

rOb 🙂

---

<div class="post-metadata">

**Author:** ![insanerob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@insanerob](https://forums.unrealengine.com/u/insanerob)\
**Post date:** [February 18, 2016, 8:11am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/8 "2016-02-18T08:11:09Z")

</div>

Hi DamirH, was a long night 😉

I still can’t see a way of updating the parameter values. I define the parameters and set their values in the behavior tree when calling the EQS query. But I can’t find any way of changing the values dynamically in the behavior tree node calling the EQS query, the so EQS is always called with the same values. Here are a couple of screen shots to illustrate. Essentially I need a way to dynamically set the values in the behavior tree -Run EQS Query - query params.

 ![BehaviourTree.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/c/bc06e2c64aa5ae15486a09dbcaddfa0755f18500.jpeg)  
 ![query.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/7/e78cd5294ce480e55256251a2ea23d4c07a29ce7.jpeg)  
Big thanks for taking the time to look at this :)]  
rOb

---

<div class="post-metadata">

**Author:** ![DamirH](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/damirh/32/906591_2.png) [@DamirH](https://forums.unrealengine.com/u/DamirH)\
**Post date:** [February 18, 2016, 8:23am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/9 "2016-02-18T08:23:41Z")

</div>

Yes, the RunEQS leaf node in BT can only accept static parameters. It’s not too hard to code a custom one in C++ though that accepts BlackboardKeySelector values. Not possible in BP though.

---

<div class="post-metadata">

**Author:** ![insanerob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@insanerob](https://forums.unrealengine.com/u/insanerob)\
**Post date:** [February 19, 2016, 6:48am UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/10 "2016-02-19T06:48:56Z")

</div>

Cool, thanks for checking I wasn’t going mad 🙂 For now I’ll leave it as it is, until my game is nearer completion and I start moving a lot of the BPs to C++

rOb

---

<div class="post-metadata">

**Author:** ![JarvDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JarvDev](https://forums.unrealengine.com/u/JarvDev)\
**Post date:** [March 10, 2021, 9:55pm UTC](https://forums.unrealengine.com/t/eqs-query-parameters/52377/11 "2021-03-10T21:55:22Z")

</div>

You _can_ set params via blueprint. Since this is the first result in google, I’ll save anyone else the trouble of looking for the answer: [EQS Query Params in Blueprint - Blueprint - Unreal Engine Forums](https://answers.unrealengine.com/questions/706663/eqs-query-params-in-blueprint.html)
