How is this animation made?


New BHRM5 have very interesting system where you change or do something with animation depending on your direction, ik you can use math to get direction, but how is this animation scripted soo it rotates?