Weapon Upgrade System Problems

Hello, I’ve been stuck on this for about a week and for some reason I can’t get a weapon upgrade system working within a game mode I’ve been working on. I initially used a blueprint interface component but the integar was just being saved locally to both the Character and the Upgrade Pickup instead of being stored within the blueprint interface itself.

So I thought this other method might’ve been a better way to do it but for some reason I can’t get it to work.

Basically I have a class blueprint that when picked up I want it to call a function on MyCharacter which will upgrade their weapon.

This is the function that I have on MyCharacter which I want to call

This is the blueprint I have which is a pickup I’ve made and in theory it should call the upgrade gun function on MyCharacter but for some reason it isn’t :frowning:

Any help would be greatly appreciated as I’m totally lost as to why the function isn’t getting called.

I don’t think you can save variables inside BP interfaces. Have you checked if the connections are actually firing while the game plays? Use a custom event instead of a function to make sure.

Hello CaptainMcMarcus,

Have you tried casting to the other blue print. I have replicated your blue prints and I have a working version(sends print stings updates when a player walks into a volume) in UE 4.5. I have a attached a picture for you to follow.

Note: You will need to drag off the “Other Actor” pin on the overlap event to get the casting option to show up. You will also need to drag off the “As MyCharacter C” pin to get the custom event. Also make sure your blueprints are compiled if you are having trouble pulling up the custom event.

Hope this helps.

Cheers

:smiley:

Thank you so much, it worked :slight_smile:

I’ve been stuck on this for two weeks and you’ve saved me :slight_smile: