How would this be achieved in blueprints for a third person game?
I’m an idiot so there are probably way better methods than this but I think something like this should work:
-
Do a sphere trace around the attacking character, to see if some possible target is nearby.
-
if a target is found within some radius, maybe do a line trace from the attacking character to get the surface position of the target
(perhaps the position of the sphere trace hit in step 1 is enough? guess it depends on how you want the homing attack to hit) -
lerp the position of the attacking character (or move it in some other way) with a tick or a timeline or something to the position of the target from either step 1 or 2.