How do I call an attack animation when the character changes direction?

Hi, I’m new to UE4 and I am trying to set up a combat system. I have melee attacks in place but I am trying to set it up so that when the directional buttons are pressed (if the character is not already facing that direction), the character performs a backfist punch (see image below) and transitions into the new direction to continue attacking normally. Currently, I am using a function that ignores root motion when each attack is played so that the character is able to change direction but I don’t like that because it causes the character to slide. I already have all the animations I need but I don’t know how to set it up. Any help will be greatly appreciated.

Incase, you were wondering what a backfist punch is.

http://http://s3.amazonaws.com/prod.skimble/assets/1003494/image_iphone.jpg

,