set_native_team_attitude
Installs a custom team attitude solver and records the pairwise attitude for two teams. This drives Unreal Engine's AI Perception affiliation filtering.
Instructions
Installs (once per process) a custom FGenericTeamId::AttitudeSolver backed by an MCP-owned symmetric table, then records the pairwise attitude for team_a/team_b. Pairs not explicitly set fall back to the engine's own default (same team -> Friendly, else Hostile). This drives the engine's own AI Perception affiliation filtering (Sight/Hearing/Touch DetectionByAffiliation), which reads FGenericTeamId::GetAttitude directly.
Returns: { team_a, team_b, attitude, resolved_attitude, solver_installed }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_a | Yes | Required int in [0, 255]. | |
| team_b | Yes | Required int in [0, 255]. | |
| attitude | Yes | Required: "Friendly"|"Neutral"|"Hostile". |