Targeting Component
Last updated
Last updated
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
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