How to animate a 180* turn?

Basically trying to get this old post answered: https://answers.unrealengine.com/questions/781356/quick-turn-character-animation-180-degrees-quick-t.html.

When the player is running in one direction and they decide to move the opposite direction, I want a specific animation to play.

Thanks.