Download

Flashlight intensity depending on player var issues

Hi!
I trying to make a simple flashlight system for my game. The flashlight spotlight should decrease in intensity depending on the value of a player variable. In the blueprint below everything works except when the player var = 2, 1 or 0. The intensity never goes below 10000.

Did I miss something? Any help is greatly appreciated!

You forgot to connect the Boolean condition to the second Branch node. That makes it so that it will always be set to 10000, nothing lower.

I knew it was something silly. Thanks for pointing it out