UCInteractionComponent

Overview

Capsule-based overlap interaction system. Extends UCapsuleComponent. Manages begin/end overlap events, closest-interactable selection, team-based filtering, and skill consumption on interaction.

Properties & Methods

Name Description
actorToInteractWith Currently overlapping actor eligible for interaction
selectionMode LAST_OVERLAPED_PRIORITY or CURRENT_OVERLAP_PRIORITY
executeInteraction Triggers the executeInteractionSkill on the target
canInteractWith Checks activation, team attitude, player-only flag, dynamic canInteract delegate
myGetGenericTeamId Returns the team ID from FCCharacterDetailMaker::teamId
myGetTeamAttitudeTowards Computes attitude: same team = Friendly, no team = Neutral, else Hostile
// Interaction flow:
// 1. OnBeginOverlap: finds closest interactable, checks canInteractWith
// 2. Consumes beginOverlapInteractionSkill
// 3. On explicit interaction (E key): consumes executeInteractionSkill
// 4. OnEndOverlap: consumes endOverlapInteractionSkill, finds next closest

// Team attitude logic:
// NoTeam (255) on either side => Neutral
// Same team => Friendly
// Different teams => Hostile