How to turn a light off?

If the “Directional Light 1” variable is accessing an actor in the game, that should work. How do you have this set up in your project?