Digital Dungeon Assets Docs
  • Welcome to the Magic Spell system docs
  • Getting Started
    • Welcome
    • Quick Start Migrating to existing Project
    • Quick Start Using Demo Character
    • Quick Start integration to ALS
  • Spell System
    • Components
    • Spell Component Overview
    • Stats Component Overview
    • Targeting Component
    • UI Component
    • Animation Notifiers
    • Damage Types
    • The Data Table
    • Function Library
    • Interfaces
    • Macro Library
    • Spells
    • UI
    • Multiplayer
  • VFX
    • Page 1
Powered by GitBook
On this page
  • Event Graph
  • Functions
  1. Spell System

Targeting Component

PreviousStats Component OverviewNextUI Component

Last updated 8 months ago

Event Graph

Gets the spell component for later references and create a widget the targeting dot which is used the owner is targeted

there are also debug keys to show the functionality of this component, please replace with your own input

Functions

Select Previous Target

Tries to find any target to the left of the already targeted pawn

Try Target

Tries to trace from the camera manager forward to find any target crossing the crosshair. If failed to get the camera manager, it will look for any camera component inside the owner

Lock Camera

Used by the tick, rotates the camera towards the target

On Target Destroyed

When the target dies, disable the targeting logic

Rotate when Actor/Rotate hen Character

They do the same, but one is looking for an actor which is very generic, and the other is assuming the owner is a character

Cancel Targeting

When the button is pressed to find a target, but a target is already locked then it cancels the targeting logic

Select Next Target

Tries to find any target to the right of the already targeted pawn