OK so I have some bombs (blueprint) laid across my level. Here is the bomb BP.
So as you see, when the player moves over the bomb BP, the object goes away and +1 is added to the HUD counter. Works great.
Here is how I calculate the values of the bombs collected for the HUD.
ThirdPersonCharacter BP stores the value
And this widget BP shows the value to the player on screen.
Everything works perfect. Player walks over bomb, bomb goes away, and the counter adds +1 on screen. Great.
Now I need to be able to set a MAX Bomb value. I want the player to only be able to collect 10 bombs, when the counter reaches 10 players can still walk over the bombs and make this go away but the counter goes no higher than 10.
I also have this BP called bomb_explodes.
What happens in this BP is that when the player presses the E key a bomb is dropped. I need this BP to check the value of the HUD counter and only allow the player to drop this BP item if the counter is 1 or Greater.
So how do I do this, detailed steps welcome.