x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

EQS How to create custom test to filter actors?

Hello

I have an Environment Query that searches for a specific type of Actor using the ActorsOfClass Generator.

I would like to filter out the actors that have one of their variables set to a certain value.

How would I create a test to do that?

Thanks.

Edit: I'm using blueprints

Product Version: Not Selected
Tags:
more ▼

asked Dec 05 '14 at 07:58 PM in Blueprint Scripting

avatar image

Ghar
707 33 107 127

avatar image MieszkoZ STAFF Dec 05 '14 at 08:45 PM

Blueprint of C++?

avatar image Ghar Dec 05 '14 at 08:47 PM

Blueprint

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

Unfortunately it's not currently possible to implement custom EQS tests in blueprint, sorry! If you're willing to use promoted UE4 from github I would be able to bring it in in couple of days. Let me know.

Cheers,

--mieszko

more ▼

answered Dec 05 '14 at 08:50 PM

avatar image

MieszkoZ STAFF
7.3k 225 57 413

avatar image Ghar Dec 05 '14 at 08:59 PM

Sure, that would be great! Thank you very much.

avatar image MieszkoZ STAFF Dec 07 '14 at 03:31 AM

It turns out it's not that straightforward. I need to think about this a bit more.

avatar image Justin.Dooley Dec 05 '14 at 11:11 PM

Without getting the git source, what goes into making a custom test? I need to do something similar specifically filtering AI teams.

avatar image MieszkoZ STAFF Dec 07 '14 at 03:22 AM

I'm not sure I understand what you're asking :)

avatar image Justin.Dooley Dec 08 '14 at 06:20 PM

No to worry, I got a copy of the Git repository to see the .cpp code for the tests. It seems that tests are fairly simple and are basically just implemented in the RunTest function.

avatar image MieszkoZ STAFF Dec 08 '14 at 08:26 PM

Generally speaking, yes. One thing to remember though is that you should use FEnvQueryInstance::ItemIterator to iterate over items and set scores or test results.

avatar image Stormrage256 Jan 27 '15 at 04:41 AM

Hi MieszkoZ, are there any near future plans to bring custom tests for EQS into blueprints?

avatar image MieszkoZ STAFF Jan 27 '15 at 08:15 AM

I'm terribly sorry but this feature is currently on hold due to many things of higher priority happening now. It's not forgotten though and will get done past-GDC-ish :)

avatar image Ixiguis Jul 10 '15 at 04:14 AM

If I have a list of characters (ActorsOfClass), and I want to score them by their health, I would need a custom test, right?

avatar image Simone13 Mar 25 '16 at 10:04 AM

Still not possible in 4.10?

avatar image SBauer Jul 19 '16 at 03:03 PM

Curious about this as well.

avatar image wilberolive Aug 03 '17 at 10:25 AM

So, almost 3 years on... this still on the todo list or coming soon?

avatar image honaj Jun 25 '18 at 05:18 PM

Still waiting for this to be implemented.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Still not possible in 4.13.

more ▼

answered Sep 16 '16 at 09:23 AM

avatar image

intoxicat3
677 71 92 148

avatar image MieszkoZ STAFF Sep 16 '16 at 02:04 PM

That's correct.

avatar image RotemS May 10 '18 at 11:10 AM

And in 4.19... why has Epic abandoned such a useful system which is so close to being usable?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

If I understand correctly what you need, I think You probably could use gameplay tags to achive this effect

more ▼

answered May 10 '18 at 02:56 PM

avatar image

Mikiok
56 3 8 16

avatar image RotemS May 10 '18 at 03:02 PM

Only in C++, not in Blueprints, as the required interface used by the Gameplay tags EQS test can not be implemented in blueprint for whatever reason.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I need that feature too. We can do a lot of thing with BP but this situation is sad :/

more ▼

answered May 11 '18 at 02:43 PM

avatar image

MASSIVE Can
26 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question