How to comunicate animation between 2 character?

I want my both character comunicate animation like taunt from team fortress 2.
any idea where can I study about this?

ue4_03

Fortnite does this too?

Basically when you start your animation (taunt/emote function is activated) you check if any other character in the near area are emoting as well, and you play the relevant matching animation adjusted for time (because you can start to emote late)

Fairly simple, but as you add more emotes the list to check against becomes near endless… so a select statement is probably the fastest way to return an animation…