Using teams via C++ interface OK?

I have not gone thru all the followup videos, but I would like to use the built-in IGenericTeamAgentInterface to allow using the friendly/neutral/enemy checkboxes in the AI Perception component. Does this break anything if I move away from the tag-based approach here in later videos? There’s a tutorial on how here: https://denisrizov.com/2017/05/08/ai-perception-in-unreal-engine-4-how-to-setup/.

It seems easier, as it’s one less branch in the NPC_AI_BP (we can leave it as-is), and we just need to uncheck the perception sense checkboxes. Also, it uses the built-in capability of Unreal to determine if an actor is friend/foe.

Did you end up implementing this with IGenericTeamAgentInterface? I would prefer to do the same, but like you am concerned it will make it difficult to follow on in later videos.

Privacy & Terms