Any way to get EQS grid points?
Hi, I'm working on a grid based game and I just started working on EQS for my pawn movement. I'm using the PathingGrid with Distance test to find all the grid points within a certain path length radius. What I'm trying to do is to store those points in an array, so that I can then check if the input location provided by the player (which is already rounded off to match the eqs grid locations) lies within that array or not. Is there any way to retrieve those points?
asked Jan 27 '15 at 04:57 PM in Blueprint Scripting
Hey Stormrage256. Check this out https://docs.unrealengine.com/latest/INT/Support/Builds/ReleaseNotes/2015/4_8/index.html
Go to AI changes and you will see that now you can use the Environment Querying System from Blueprints. That means that you can call the EQS from inside your BP and by doing so you can get all the results. As you can see, you can get the Instance itself or just the Locations/Actors that were created (Hiding Spots Query Instance in the picture is an Query Instance Blackboard variable)
Make sure to: 1)chose the correct Query Template 2)chose Querier from your EnvQueryContent BP or just connect it to the AI pawn from the Event receive AI node (like i did) 3)chose Run Mode All Matching because if you chose the best you will only get one result
Also make sure to continue your logic after the query finish event because you might not get results (look at the pic)
I spend hours searching and experimenting and to be honest your post was the only one directly asking what i was looking for. So i suppose that nobody else has noted or explained how it works after the update. i also couldn't find any reference except the changelog itself. Am making my first stealth like game and i want the AI to be clever in the way its searching and not cheating because am aiming for a quality game as much as i can. If you need more help let me know
answered Aug 13 '15 at 09:03 PM
There is only a C++ way currently, but making it possible via blueprints is one of my top priorities, so stay tuned.
answered Jan 27 '15 at 08:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here