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

Ninja Bear Studio Plugins Help

Bot and Factions: Resolve Teams for Perception

Make a lookout notice a rival while letting a teammate walk past. Ninja Factions decides how the lookout regards each actor. Ninja Bot's Sight sense uses that attitude to decide whom to report.

Give the lookout two recognizable targets

  1. Start with the two-faction setup and a guard with working sight. Give the guard and one visitor the same main faction, and the other visitor a different main faction. Use distinct team IDs. Set the guard's faction to Friendly toward itself and Hostile toward the rival.

  2. Keep the guard's Ninja Bot controller. With both plugins enabled, open Project Settings → Ninja Bot and choose Faction Team Provider for Team Provider Class. It looks up team IDs and attitudes through Ninja Factions automatically. You set membership once on each actor.

  3. In the guard's Sense Profile, enable Detect Enemies for Sight. Turn off friendly and neutral detection. Give both visitors the same sight-source setup so that only their faction differs.

Faction Team Provider selected in the Ninja Bot project settings

To give a disguised visitor an exception, customize the Factions attitude solver. Override SolveAttitude in Blueprint, or SolveAttitude_Implementation in C++, and apply the disguise rule when the guard is the source and the visitor is the target. Call the parent solver for ordinary encounters. To draw a debug label, use the Faction Function Library's GetMainTeamIdForMember for the team and GetAttitude for the guard's actual opinion.

Try It in Play

Walk each visitor through the same patch of ground, one at a time. Only the rival should become a sight target. If both visitors are ignored, call Get Attitude with the guard as Source and each visitor as Target. A Hostile result points you toward the Sight filter or sight-source setup. A Neutral result points you toward the memberships, selected solver, or faction attitude settings.

25 November 2026