# Custom EQS Generator not working

**URL:** <https://forums.unrealengine.com/t/custom-eqs-generator-not-working/351625>\
**Category:** AI\
**Tags:** Environment-Query, EQS, unreal-engine, question\
**Created:** [March 24, 2016, 2:47pm UTC](https://forums.unrealengine.com/t/custom-eqs-generator-not-working/351625 "2016-03-24T14:47:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d973a2dd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d973a2dd](https://forums.unrealengine.com/u/anonymous_user_d973a2dd)\
**Post date:** [March 24, 2016, 2:47pm UTC](https://forums.unrealengine.com/t/custom-eqs-generator-not-working/351625/1 "2016-03-24T14:47:26Z")

</div>

Ok, i’m trying to make my custom eqs generator, but it doesn’t work, so here’s my setting:

- in the scene there are 3 Target C (a child class of TargetPoint) actors
- in my custom query a use ContextC, a simple GetAllActorOfClass context
- as query Generated Item Type i selected point
- in my generator i simply cycle trough the ContextLocations, print the coordinates to the log for debugging, and add the location with the AddGeneratedVector
- the output log display correctly the locations coordinates
- in the viewport i get just one point from the eqs query in (0,0,0)

Where am i wrong? Is there something i forgot?

I also found other question about the same topic, but all those where based on the “spike-around-querier” example, so none of those made use of Context Locations input, and all of those use a temporary array to store the locations and then use the AddGeneratedVector in a second loop: isn’t it much easier to add the location on the fly just after calculate them as i do?

Oh, obviusly the editor crashes if the AddGeneratedVector node is linked to the rest of the generator 😃

 ![83646-myquery.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/1/8c1e91f02ec7a2a497ab4c9893fae36244fdebc0.png)

 ![83647-mygenerator.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/b/b5bf6b56c268f9a4d855866bb9e496a8d45ab343.png)

 ![83648-debuglog.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/d/a0df5257011849c37fb8b838266220b906faf107.png)

 ![83649-viewport.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/c/62cc0213b9d70207602118cd5e12bbdac3dc6b62.png)

---

<div class="post-metadata">

**Author:** ![TomasOplatek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TomasOplatek](https://forums.unrealengine.com/u/TomasOplatek)\
**Post date:** [February 15, 2021, 2:22pm UTC](https://forums.unrealengine.com/t/custom-eqs-generator-not-working/351625/2 "2021-02-15T14:22:43Z")

</div>

If anyone stumbles upon this question, I had the same problem and the solution was to change the Generator blueprint. Go into your blueprint, and select the Class Defaults tab. From there, set the Generated Item Type to EnvQueryItemType\_Point. You have to change it in both the Env Query Generator AND the EQS itself.

 ![73276-generateditemtype.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/c/99cc6c67796a32ad09853f727295d17924fb47d6.png)

---

<div class="post-metadata">

**Author:** ![ProtoProfessor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProtoProfessor](https://forums.unrealengine.com/u/ProtoProfessor)\
**Post date:** [April 23, 2024, 5:09pm UTC](https://forums.unrealengine.com/t/custom-eqs-generator-not-working/351625/3 "2024-04-23T17:09:06Z")

</div>

Thanks for taking the time to update this thread with the solution Tomas! Saved me a lot of frustration and head scratching. Cheers
