Cast from actor to skeletal mesh to execute animation depending on the bone

I am trying to cast a line/raycast from the character to other skeletal actors and play an animation depending on what bone it hits. Any ideas on how to achieve this with blueprint???

What do you mean? If you explained I could probably explain.

The “Out Hit” struct has a “Hit Bone Name” variable that you can use to determine which bone (if any) was hit. You can then pass that bone name along to whatever BP implements the animations.

You can use a “Switch on Name” node to simplify the execution routing, if you want: How does switch on name or string works? - UE4 AnswerHub

I use this to specify head shots vs body shots in my project. basically if bone name = head then do 150 damage and if bone name = body do 100 damage. something like that.