How to Increase/decrease Flashlight Brightness?

How would I go about increasing/decreasing flashlight intensity with the scroll wheel ? I know how to set up the input for the mouse wheel, but I’m just having trouble with mapping out the function for increasing/decreasing the intensity of the flashlight brightness. Below is a picture of the scripting for toggling it on/off. I’m using v 4.18. THANKS AHEAD OF TIME!

This could work:

Thank you! That’s close but it’s basically just toggling it on and off… Is there a way for it to scroll from 0 to 1000 depending on how much you scroll? Or did I do something wrong?

The example will adjust the value in the increments of 1000 per mouse wheel scroll tick. Try lowering it for more granularity. The default intensity of the Spotlight is 5000 (I think) so I used that as a base here. So 5 scroll downs will switch the light off.

If you require a completely smooth transition, it would require a slightly different approach. A timeline or interpolation.

edit: I’m getting this with increments of 1000:

https://gyazo.com/d790258ddf794fbf201caefb66803d07

Not sure what effect you’re after precisely, but you will most likely want to introduce a clamp, too:

Thank you! The last picture works like a charm and is exactly what I was looking for! Thank you for the quick responses and for all your help! I marked your answer. :slight_smile: