How to toggle light slowly.

I am trying to block the skylight out of a sublevel. I made a blueprint to toggle the visibility of skylights with a trigger box, but when i enter the light changes too suddenly. Is there a way to make the light toggle slower and smoothly?

i reckon you could do some math. compute the distance from the overlap to the center of the trigger. and dim the light intesity as you progress.

1 Like

Thank you for your reply! What components would I use to dim the light intensity? I am using Toggle Visibility so I can only turn the light on and off.

i thought something like this would work.

a trigger box with some form of distance math. it does the tick and does the math approximately correct. for some reason the light doesn’t update tho. i dunno what i’m missing there. oop referencing failed.

edit: i was stupid. lights gotta be movable to receive updates. then… you can fire and forget the thing. a fixed tick interval gives you control how fast it demultiplies the intesity. be aware floating point has precision. you will not reach 0 intensity to get out of the tick loop. you gotta have a minimum threshold to bail out before 0.

it’s upto you to manage the global intensity and get this back on smoothly.