Create the same variable in your animation blueprint. Go to the event graph of the animation blueprint. Search for Cast to character blueprint (Whatever your character is) than get the variable from your character and set it to the on from your animation blueprint. I’ve done something similar in one of my projects (See picture)
