Squads, Roles, and Units
Squad settings describe organization: a Definition specifies how a squad is composed, SquadComponent owns runtime members and roles, UnitComponent mirrors each Unit's squad identity, and slot assignment plus Movement Intent connect that organization to Formation and movement.
For the ownership model and Intent generation, see Squad System. For Formation space and navigation adaptation, see Formation System. Setup and extension are covered by Configure Squads, Formations, and Slots and Squad, Role, and AI Extension Points.
UGAIS_SquadDefinition
UGAIS_SquadDefinition is a static template for one kind of squad. It does not store runtime members; it defines the host, default Units and roles, available formations, behavior baseline, slot scoring, and Movement Intent defaults.
FGAIS_SquadUnitInfo
Default Unit templates are used when a Definition creates or replenishes a squad. UnitClass is the Actor class to spawn or fill, DesiredRole is the initial role, and OverrideRoleAI supplies a Unit-level role StateTree override. Missing classes/components make members invalid; an unavailable role is reassigned, left vacant, or triggers the missing-role policy; too many overrides make role-default AI difficult to maintain.
FGAIS_SquadRoleInfo
Role settings define which Units can occupy a post and its priority during fill and slot contention. They affect role occupancy, StateTree assignment, slot semantic matching, and reorganization.
UGAIS_SquadComponent
UGAIS_SquadComponent is runtime squad truth: it initializes the Definition, maintains member FastArray and role occupancy, tracks capacity, waits for Formation readiness, reallocates slots, refreshes Movement Intent, and emits member events.
UGAIS_SquadSubsystem
The World-level squad registry and creation helper serves project logic, Blueprint, and higher systems.
UGAIS_UnitComponent
UGAIS_UnitComponent makes an Actor recognizable to squads and mirrors assignment results. It is also the default command-intent Resolver; final Commands execute through UGAIS_CommandSystemComponent on the candidate Pawn/Character.
FGAIS_FormationSlotAssignmentSettings
Slot assignment scores Unit/Actor tags, current role tag, SlotTags, slot weight, distance, and previous slot.
FGAIS_MovementIntentResponseSettings
These settings turn slot targets into movement guidance. They do not move Units; they provide Driver/project movement with desired location, speed, response strength, and arrival state. DefaultMovementIntentResponseSettings initializes each draft and Squad/Unit Modifiers can override it.
Movement Intent Modifiers and final Intent
Formation first supplies slot world position/orientation and creates FGAIS_MovementIntentResolveState, seeded with Definition response settings, default tags, and average-squad-velocity prediction. Squad Modifiers run before Unit Modifiers. Within one scope, higher PriorityWithinScope runs later and is appropriate for final overrides.
Final FGAIS_SquadUnitMovementIntent records RawDesiredLocation, predicted DesiredLocation, DesiredOrientation, DesiredSpeed, DesiredVelocity, bShouldMove, bIsInDesiredLocation, MovementIntentTags, and DriverPolicy. It is written to the Squad entry and mirrored to UnitComponent.