One variable splitting into two values.

So, that one is quite hard to explain but I’ll try my best. I’ve got a widget with a few buttons and values that are constantly decreasing from 100-0 and the only way to keep these values from reaching 0 is by holding down the buttons.
Here is a small part of the blueprint which shows the logic behind 1 of the buttons:


And here’s the result:


The branch node is using the lower value that is showing which I cannot change. If I have to guess I’ll say that this is probably a side effect of using event tick for anything, ever, but I’m not aware of any other way to check a value constantly.
If you need any further information you might need just ask me. Thanks in advance.

you can enable RepNotify on the variables.

That will create a function that is triggered everytime the variable value changes.

I’m sure that this will come in handy, but I don’t think that the solution to my problem revolves around that. Perhaps you meant another way to create a loop for decreasing the variable?

timers

2 Likes

Does that look right?