# Custom EQS test

**URL:** <https://forums.unrealengine.com/t/custom-eqs-test/435305>\
**Category:** AI\
**Tags:** property-customizati, EQS, unreal-engine, documentation, CPP, question\
**Created:** [October 9, 2018, 8:31am UTC](https://forums.unrealengine.com/t/custom-eqs-test/435305 "2018-10-09T08:31:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max974](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Max974](https://forums.unrealengine.com/u/Max974)\
**Post date:** [October 9, 2018, 8:31am UTC](https://forums.unrealengine.com/t/custom-eqs-test/435305/1 "2018-10-09T08:31:27Z")

</div>

Hello here,  
I want to create a custom EQS test, however it’s not possible in Blueprint and I can’t find any documentation on how to achieve it in C++.  
Can someone lead me where to start or provide any documentation about this subject please?

---

<div class="post-metadata">

**Author:** ![RotemS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RotemS](https://forums.unrealengine.com/u/RotemS)\
**Post date:** [October 9, 2018, 3:48pm UTC](https://forums.unrealengine.com/t/custom-eqs-test/435305/2 "2018-10-09T15:48:44Z")

</div>

Based on the code, it seems like you just need to create a c++ class derived from UEnvQueryTest. Have you tried this?

---

<div class="post-metadata">

**Author:** ![NicholasMont](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NicholasMont](https://forums.unrealengine.com/u/NicholasMont)\
**Post date:** [October 9, 2018, 10:12pm UTC](https://forums.unrealengine.com/t/custom-eqs-test/435305/3 "2018-10-09T22:12:55Z")

</div>

Hey Max974,

I would first start with reviewing the documentation of a general overview of Enviroment Query System [Overview Link](https://docs.unrealengine.com/en-us/Engine/AI/EnvironmentQuerySystem), much of the functionality in blueprint is mirrored in the C++ [API Documentation](http://api.unrealengine.com/INT/API/Runtime/AIModule/EnvironmentQuery/UEnvQueryTest/index.html), however, reviewing the general system and how it communicates through blueprint nodes may be of some use to you in your C++ implementation. I believe you may also be interested in [Query Result](https://api.unrealengine.com/INT/API/Runtime/AIModule/EnvironmentQuery/FEnvQueryResult/index.html), if you intend to implement your own EQS Test functionality.

Please let me know if you need any further explanation or additional questions.

Thanks

---

<div class="post-metadata">

**Author:** ![Max974](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Max974](https://forums.unrealengine.com/u/Max974)\
**Post date:** [October 11, 2018, 3:03pm UTC](https://forums.unrealengine.com/t/custom-eqs-test/435305/4 "2018-10-11T15:03:27Z")

</div>

Hey, thank you for responding

@RotemS : I’ve tried it yes, but I didn’t know how to start coding my own test to expose functions and variables in blueprint.

@NicholasMont : Thanks for those very helpful links, I’m already used to the EQS system and I needed some more controls over the tests in particular in order to push further the capabilities of the system.  
Although I’m still a beginner in C++, and maybe creating an EQS test can be very difficult for a beginner, but I was curious to see what it takes to just expose functions and variables to Blueprints so I can start creating my EQS tests class in Blueprint.  
It seems possible, I still need to get better in C++ before starting to create what I need, I guess, but the documentation you’ve provided will help me for sure!

Thanks again
