Skill Implementations

Overview

Built-in skill implementations provided by CGAMEUMODULE.

UCToggleTemporarySelect

A UCAbstractSkill that toggles temporary selection highlighting on the closest overlapping actor. It runs a tick loop (doForever) that continuously checks the source actor’s UCInteractionComponent for the closest interactable, toggles UCSelectComponent::toggleTempSelected on the previous and new closest actor, and stops when no overlapping components remain.

Name Description
closestActor Transient reference to the currently highlighted actor
tickable Transient UCdryxTickable running the selection loop
applySkill Starts the tick loop if not already running. Each tick: un-highlights previous, finds new closest, highlights it. Stops when overlap list is empty
// UCToggleTemporarySelect is registered automatically by UCGameManager
// as the "CToggleTemporarySelect" skill during storeNewGameBoard.
// It is consumed via the standard skill pipeline:
SkillUtility::consumeSkill(FName("CToggleTemporarySelect"), sourceActor, nullptr);

// Internally, each tick:
// 1. Retrieves UCInteractionComponent on source
// 2. Calls retrieveClosestInteractable to find the nearest overlapping actor
// 3. Toggles UCSelectComponent::toggleTempSelected on previous and new closest
// 4. Updates the source's own UCSelectComponent visibility
// 5. Stops the tickable when no overlapping components remain