llms.txt: machine-readable documentation index. Markdown version of this page is also available.

Ninja Bear Studio Plugins Help

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

  1. On the character class used for the guard and the player, implement IGenericTeamAgentInterface from GenericTeamAgentInterface.h. Add AIModule to the module dependencies if needed.

  2. Expose a byte property named TeamId on the character defaults. Override FGenericTeamId GetGenericTeamId() const and return FGenericTeamId(TeamId). The default provider reads the actors being compared, including the guard's pawn.

  3. 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.

Sight configured to detect enemies

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.

25 November 2026