I’m currently using the top-down template and would like to make it so that the player can “lock on” to an enemy.
Essentially, while the player pawn is locked on to an enemy, the player can still click to move the pawn around, but the pawn will remain facing the enemy and appropriately back up, strafe or what have you to the clicked location.
So if the enemy is directly in front of the character and you click directly to the character’s right, the character will remain looking at the enemy and simply strafe right. Clicking behind the character will cause him to back up away from the enemy.
I’ve got it so that the player will remain facing the enemy, but I am unsure how to affect the player animation depending on the clicked location relative to the player. The default animbp just calculates speed.
Thanks in advance.