Context Based attacks?

Would anyone know a way to make the attack animation dependent on the position the enemy is in? Like in GTA when you stomp on downed enemies

using IK or aimOffsets. I plan on making animations like that for my character too.

If I’ve already animated them would you know how I’d go about implementing them in UE4?