Fire function on Weapon BP that PlayerCharacter can use

Hey All,

I’ve been struggling with this concept for my Third Person Shooter game.

What I am trying to achieve:

A function on the Master Weapon Blue Print that will Fire the gun’s line trace. Child Weapons created from this Master Class will inherit the same function.

Problem:

When I create the above action, my PlayerCharacter doesn’t have access to it.

I believe this is the best way to achieve what I want to do, as the 1st Person Shooter does this, but only in C++, which I am not great at.

Thoughts and suggestions?

Thank you!

You’ll need to set a variable with the Master Weapon BP in your players character. Then you’ll be able to get its functions and variables. To do so look up on “casting” and then setting the cast to your Master Weapon BP.