Configure Teams and Attitudes
Make the First Steps guard ignore an ally and chase an enemy. This route uses Unreal's native team interface and requires a C++ character class. For a Blueprint workflow using faction assets, follow Bot and Factions.
Give the guard and the player team IDs
On the character class used for the guard and the player, implement
IGenericTeamAgentInterfacefromGenericTeamAgentInterface.h. AddAIModuleto the module dependencies if needed.Expose a byte property named TeamId on the character defaults. Override
FGenericTeamId GetGenericTeamId() constand returnFGenericTeamId(TeamId). The default provider reads the actors being compared, including the guard's pawn.Compile and set the guard's team to 1 and the player character's team to 2. In Edit → Project Settings → Ninja Bot, select Default Team Provider.
Limit sight to enemies
Open the guard's Sense Profile and expand Sight. Under Detection by Affiliation, enable enemies and clear friendlies and neutrals. Save.

Try It in Play
With Unreal's default team attitudes, the guard should chase the player on team 2. Stop play, change the player to team 1, and repeat from the same position. The guard should keep roaming. If both tests behave alike, check the team property on the possessed pawn and the profile assigned to the guard.