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. 

How to setup AI Perception with Neutrals/Friends/Enemies?

How can i set those up in blueprint?

alt text

Product Version: UE 4.14
Tags:
more ▼

asked Dec 12 '16 at 02:13 AM in Using UE4

avatar image

unit23
493 30 45 83

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

1 answer: sort voted first

You can't set it in blueprints, or at least I haven't found a way to do it blueprints. I've created a tutorial on how to setup AI Perception. Here is a link: AI Perception Tutorial

Basically your character needs to implement the IGenericTeamAgentInterface. With that you can set a TeamID to your character. By default all actors are in a team NoTeam which has a value of 255. If the actors are in no team, they are neutral to others. If they don't implement that interface, again they are neutral to others. If they are in the same team (TeamID = 1 for example) they are friendly to each other. If they are in different teams different from 255, then they are enemies.

more ▼

answered May 14 '17 at 08:28 PM

avatar image

dbrizov
329 21 22 43

avatar image unit23 Jul 10 '17 at 05:18 PM

Thank you dbrizov

avatar image dbrizov Jul 10 '17 at 08:23 PM

Glad I could help :)

avatar image kenmorechalfant Jul 07 '18 at 04:42 AM

Is this still not implemented outside of C++? Would it be possible for it to just be a component rather than an interface? Seems like a more flexible solution long-term.

(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