Overview

WCGASAICombatComp is a central ActorComponent that bridges AI decision-making with the Gameplay Ability System. It manages threat tracking, combat state transitions, GAS attribute queries, and ability activation—all without requiring inheritance. The component uses composition to work with any AI setup, automatically discovers the owner's AbilitySystemComponent, and integrates with squad systems for role-based threat modifications.


Core Functionality


Initialization Flow

Automatic Initialization (Default Behavior):

  1. Component reaches BeginPlay
  2. Caches references to owner's AbilitySystemComponent, StatusEffectComponent, SquadComponent, and AIController