How to use AI team sense using blueprint?

I have the enum only in the component, and I use a function called setMyTeam.
I also call a pure function on the component called IsEnemy with the input from the detected actor. That way, all the logic of teams stays in the component.

2 Likes