Light switch blueprint (not baking he lights)

Hello everyone

I got a class blueprint into my scene (in fact 5 different, but I don’t think that matters) to switch on and off some lights. Inside my blueprint I got some spotlights and to switch them on I just got to use the left button of the mouse when my player is inside a box collider.

The problem is that when I build the lights it bakes them always on. When I try to play around and I press the trigger the sound of the switch is working, so the blueprint is working, but the spotlights doesn’t turn off.

I’ve tried doing it with the “toggle visibility” function, and with the “set intensity” one.

What can I do?

thanks everyone!!

Could you please upload a screenshot of your blueprint. It makes it much easier to help.