Animation to play when ending a state

Hi all,

I’ve been racking my brains trying to figure out a solution to this but keep coming up empty.

Is there a simple way of playing a single animation when transitioning out of a state in to a completely different state?

Eg:

When entering this entire state from the top level of the animgraph I want an equip animation to play and then when I exit this state I want the animation to play again?

e58c7e935f3541ed92ea195d2d6fc6772b2bf74b.jpeg