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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

EQSQuery Generator: Generate Items From Context

Hello there!

Two days ago i start to work in a little AI system, that involves select one item from the provided from a EQSContext.

All the generators that UE4 have are for return locations as items, except the ActorsOfClass Generator, that return actors of class in a specific radius from a specific context, but what about generate items from a context for filter and score it in the tests? im not sure how to explain it to you, im talking about a new generator for EQSQuery system, that convert in items the actors provided by a context, and use that items for the tests inside the generator.

In case that my suggest dont work, how i can achieve that? specifically my goal is score the distance between my querier and my context actors, but returning the actor of the context closer to my querier, as plus, i need to say that ActorsOfClass generator are not the best option for me, my context return the actors percieved by the AIPerceptionComponent in my AIController, i dont need the actors that are not percieved by the AIPerceptionComponent, the ActorsOfClass Return all in the radius and that is a waste of tests

Thanks in advance!

Whitman and Olbert.

Product Version: UE 4.13
Tags:
more ▼

asked Oct 03 '16 at 03:07 PM in Blueprint Scripting

avatar image

WhitmanAndOlbert
3 1 3

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

1 answer: sort voted first

I would suggest you use GetQuerier inside your custom Generator that would then do a cast to of your type to then retrieve the list of perceived actors.

I am having an issue with AddGeneratedActor on android currently. 13.1 it seems to bring the system down. Works fine on PC. I am switching that logic to use the AddGeneratedVector which seems to work, fyi.

more ▼

answered Oct 20 '16 at 10:24 AM

avatar image

learningOver
159 3 3 9

(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