Hey guys. Pretty new to UE4, but picking it up as fast as I can. So here is the issue.
I have created a coin system, the player moves over a coin and +1 (or +5 depending on the type of coin) is calculated on the HUD. The coin system works perfect.
What I need to happen now is when the player collides with a certain Blueprint Item then 60 coins need to subtract from the total value on the HUD.
Here is what I have so far.
When the game loads, the HUD is loaded via the level BP as shown.
In the ThirdPersonCharacter BP my AddScores function is like this:

In my HUD this is the Event Graph:

My HUD has a textblock on it that displays the collected scores (coins) this is the GetText:
Here is my Coin BP:
So up until this point everything works perfectly, player starts game, collects coins, coins are calculated on screen, great - but now I need to walk over a BluePrint item and have just that item subtract 60 coins from the HUD calculation. This is where I am stuck now.
Here is the BlueCandle Blueprint (when player walks over this the game should check if player has at least 60 coins, if so the item disappears and 60 coins subtracted, if player does not have 60 coins then the item stays there and nothing happens)
What I think I am supposed to do is create a Branch with the condition being if AddScores is greater or equal to 60 then TRUE if not then FALSE
When I try to drag off the <= condition and type AddScores or Scores nothing pops up.
I cannot figure out how to link this BluePrint to the AddScores function so I can subtract the coins from the HUD. I might be trying to do this the wrong way and after a week of tutorials and countless YouTUBE videos I am still at a loss here, I am hoping one of you professionals here has the easy solution for me.
Any and all detailed help is appreciated.
If you need any additional info or screenshots just let me know.
Many Many thanks in advance.









