Lets do it step by step
-
create the variable in the character bp and setup the damage system
-
Create a Health variable in the anim bp (red) and add it as a set node. Now get a cast to your character node (blue), drag out the blue link and search for your health variable from the char bp (orange)
-
In the anim graph add a new state and in the transitions you will have to add the health variable from the anim bp (like on the picture)
-
add the animation into the state
-
now it should work