Use animation on a blueprint child of a bluepint

So I have an animation I made for a gun skeletal mesh. I can get it to work if I put that mesh inside First Person BP.

But I can’t get the animation to work if I put the blueprint of the gun inside First Person BP. Even though I set the animation BP for the skeletal mesh inside the Gun Blueprint. What am I missing?

Hey @esumms999. Are you updating the variables for the Gun Blueprint Anim_BP? if the Gun Blueprint is correctly set up then it should be working. Can you show how you set it up?

When you say you put the gun blueprint inside the first person bp, do you mean it’s a child actor?

Yes it’s a child, here’s a screenshot

image

When I choose the animBP for the mesh within this BP_firstperson, it works.

But I can’t choose an animBP for the GunBP here so I choose it in the actual GunBP skeletal mesh.

image

Should I be setting up the via a node? I’m just doing it in the panel on the right under animation.

It should work fine like that, unless you have changed the Anim Class setting in your child actor template in your child actor component:
image

This will override any default that comes from BP_ThirdPersonCharacter in my case, or in your case from the AK_110_Assault_BP

So this is what I have now. This in itself should make it work?

Yes if the Anim Class is set to the correct one in Child Actor Template → Mesh → Animation. Also, if your gun animation bp has a “Try Get Pawn Owner” node to drive the animations, this won’t work now, since your gun actor is not a pawn

ohhhhhhhhhh that’s my problem, I’m using that node, so that’s my problem. Thanks for your help!