Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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 alt text

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 :( alt text

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

Product Version: Not Selected
gunlevel.png (65.2 kB)
upgrade.png (76.0 kB)
more ▼

asked Oct 13 '14 at 11:29 AM in Blueprint Scripting

avatar image

45 7 7 10

avatar image alperenakyuz Oct 16 '14 at 04:30 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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. alt text

Hope this helps.


castinghelp.png (128.4 kB)
more ▼

answered Oct 17 '14 at 02:38 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image CaptainMcMarcus Oct 17 '14 at 10:15 PM


Thank you so much, it worked ^_^

I've been stuck on this for two weeks and you've saved me :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question