Interaction Manager
Last updated
Was this helpful?
Last updated
Was this helpful?
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).
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.
Target Locking:
Upon request, tries to locks onto the nearest valid Enemy target and updates the camera and player orientation accordingly.
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.