Interaction Manager

The Interaction Manager (AC_InteractionManager) handles interactions between the player and nearby interactables. It also manages target locking and target switching for combat.

It is added to the Character class by default (B_Soulslike_Character).

How It Works

  1. Detecting Interactables:

    • Continuously (on a reasonable interval) traces nearby Interactable objects.

    • Maintains a list of detected objects and shows the interaction widget for the closest object.

  2. Target Locking:

    • Upon request, tries to locks onto the nearest valid Enemy target and updates the camera and player orientation accordingly.

  3. Target Switching:

    • Allows switching between nearby targets based on input (e.g., cycling through enemies during combat).

    • Ensures smooth transitions with minimal disruption to gameplay.

Example Usage

Tracing for Interactables
Target Locking related traces

Last updated

Was this helpful?