How to Charge to enemy AI's location?

Hi there fellow forum lurkers! :slight_smile:

I am trying to achieve a “charge-to” effect in my game, such as the Warrior’s charge ability in World of Warcraft. The game I’m working on is not that much similar to WoW in terms of logic however basically, on keypress I get nearest actor, then I want the player pawn to run/charge to the nearest actor.

Currently I have this code setup however it’s meant for charging directly forward, not in the location of the nearest actor:

What can I replace the GetActorForwardVector with to achieve this effect? I’ve tried using the nearest actor’s location but that doesn’t seem to work. Any help/tips appreciated!


1 Like

More may be needed, depends on details.

1 Like

Hey man, appreciate it. I got it working with a similar way, thanks anyways! :smiley:

1 Like