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"

Implementing IGenericTeamAgentInterface


I am trying to set up AIPerception component for my bots and at some point I faced the problem "Detection by Affiliation".

I followed this tutorial to set up teams: https://denisrizov.com/2017/05/08/ai-perception-in-unreal-engine-4-how-to-setup/

But it did not help me.

For some reason, my implementation of GetGenericTeamId never gets invoked. Same for AI - AI cannot detect each other (by Friendly Affiliation): Only neutral affiliation works.

What am I missing? Would appreciate any help.


Product Version: UE 4.22
more ▼

asked Apr 28 '19 at 02:01 PM in C++ Programming

avatar image

19 4 8 11

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

1 answer: sort voted first

Perception stimuli source component?

more ▼

answered Apr 30 '19 at 04:48 AM

avatar image

116 13 19 29

avatar image yateam Apr 30 '19 at 08:24 AM

Thanks for your reply. Yes, I added a perception stimuli source component to a pawn object - but that did not help me. I attached ai perception component to an AI controller and perception stimuli source component to a pawn.

avatar image laggyluk Apr 30 '19 at 10:12 AM

You also need to configure senses on both of them. You can also try adding perception component to pawn instead of ai controller but maybe not necessary. In the viewport >show>developer>ai debug for some feedback on the config

(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