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"

[Closed] AI Perception performance

Hi!

We have implemented the AI perception system in our game and so far everything works pretty cool and is exactly what we needed, thanks for that!

In order to be ready for the future I was wondering how would be the best way to enable/disable senses on certain actors. For example I want to disable the sight sense for an enemy that is not within a sensible range of the player.

So far we haven't seen any performance issues but would like to identify some areas of improvement (in case we find them :-) )

Thank you very much!

Cheers, Andres

Product Version: Not Selected
Tags:
more ▼

asked Jun 17 '16 at 09:33 PM in Using UE4

avatar image

Answers.Archive STAFF
1.9k 209 316 689

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

The question has been closed Jun 17 '16 at 09:33 PM by AndrewHurley for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Hey Andres,

The easiest way to disable a sense would be by calling UAIPerceptionComponent::UpdatePerceptionFilter. The function is mis-named, since it's working on a white list rather than a blacklist. Also, the function is protected :/ I'll add a public, properly named function in 4.11. In the meantime just make it public and give it a try. Let me know if it worked as you expect.

Cheers,

--mieszko

more ▼

answered Jun 17 '16 at 09:33 PM

avatar image

Answers.Archive STAFF
1.9k 209 316 689

avatar image Answers.Archive STAFF Jun 17 '16 at 09:33 PM

Hey Mieszko,

That worked perfect :). I think right now i can do almost everything.

Thanks!

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

Follow this question

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

Answers to this question