Make Mounted Machine Gun

I’m trying to make Mounted Machine Gun “Cannon”
I follow all the BluePrint in this tutorial

but in 3:27 I got an error in Animation BluePrint
here is the link for this tutorial starting on 3:27

is there someone available here to help me on this, I will be so Glad in this community.

I would just try to delete and rebuild the get owner and cast to nodes. Otherwise, maybe your owning actor got reparented to a new class type (actor, or character, etc)?

thanks for your time,

ok I tried before (rebuild the get owner and cast to nodes) it doesn’t work
and about the parent class or child, how to check that?
tell me where should I go to answer you.

Seems like BP_Anim_Cannon isn’t Pawn or Character class (probably it is simple actor). To use “TryGetPawnOwner” your cannon should be pawn or character.

To check parent of given blueprint, open it and there is info in the upper right corner.

ok, let’s make it clear, I have 2 blue prints
1- BP_AnimCannon “Anim Instance”
2- BP_Cannon “Actor”
which one should be Pawn or Character class?

I tried to rebuild the BP_Cannon “Actor” to BP_Cannon “Pawn”
still the same.

should both of BP be in same class?

and the main question from where I should change the parent class of Anim BP?

change the BP_Cannon to pawn and cast to the BP_Cannon.

the pic you shared shows you are casting to the BP_AnimCannon from the BP_AnimCannon. you just need to replace that node with the cast to the pawn.

Thanks all of you:

NotSoAccurateNo1
exadi
IndieGameCove

it working not

Does any one know why when I move the cannon down I can see thru the cannon mesh?

this is all the way up