# Turn on Lights with trigger box AND widget button press

**URL:** <https://forums.unrealengine.com/t/turn-on-lights-with-trigger-box-and-widget-button-press/609311>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [July 20, 2022, 12:48pm UTC](https://forums.unrealengine.com/t/turn-on-lights-with-trigger-box-and-widget-button-press/609311 "2022-07-20T12:48:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinsent](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vinsent/32/88707_2.png) [@Vinsent](https://forums.unrealengine.com/u/Vinsent)\
**Post date:** [July 20, 2022, 12:48pm UTC](https://forums.unrealengine.com/t/turn-on-lights-with-trigger-box-and-widget-button-press/609311/1 "2022-07-20T12:48:57Z")

</div>

Is there a way to use one button from a widget to control lights in my scene? I currently have it setup to enable when the user overlaps the trigger box. However, I wanted to add a button that will enable the lights when the user is inside the trigger box AND presses a widget button.

Additionally, I wanted to have the button to have the same functionality to be able to control other lights. I mean, I have additional lights with trigger boxes and want to reuse the same button widget to control their behaviour.

Here’s my current approach for one of the trigger boxes:

 ![BP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/9/289127d0467be00aaf76e7dbc1ebe9c96fdc547a.jpeg)

Here’s the location button:

 ![ButtonPressed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/5/915cd7a05921dd0912a24ccfdedd00593218acce.jpeg)

I’m not sure if this is the right approach since it doesn’t work. ☹ I’m wondering if I am overthinking it and there’s an easy solution for this.

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [July 20, 2022, 1:18pm UTC](https://forums.unrealengine.com/t/turn-on-lights-with-trigger-box-and-widget-button-press/609311/2 "2022-07-20T13:18:46Z")

</div>

you can make a dispatcher in your gamemode BP called Switch Light and add a signature in the dispatch a light ID

then you can set each button and light the ID you want for link em…

then in the light you can bind the dispatcher and check if ID matches then toggles state

and in the switch you can call the dispatcher with the light ID.

If too confusing let me know and I can try to illustrate with pics/video.

are your light actors or just lights in the scene?

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [July 20, 2022, 1:23pm UTC](https://forums.unrealengine.com/t/turn-on-lights-with-trigger-box-and-widget-button-press/609311/3 "2022-07-20T13:23:11Z")

</div>

APPROACH 2:

you can add a LIGHT variable in your button BP and turn on the EYE to expose in the editor.  
Then you just drop your buttons in the scene and you can pick/select the light for each button there and then you have access to the light in a variable inside the button.

---

<div class="post-metadata">

**Author:** ![Vinsent](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vinsent/32/88707_2.png) [@Vinsent](https://forums.unrealengine.com/u/Vinsent)\
**Post date:** [July 21, 2022, 2:57am UTC](https://forums.unrealengine.com/t/turn-on-lights-with-trigger-box-and-widget-button-press/609311/4 "2022-07-21T02:57:34Z")

</div>

Hello, thank you for the reply! I’m trying to do what you said but I am getting lost. Can you please try to illustrate it with pics? Also, my lights are inside a Blueprint. Please see below:

 ![PointLight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/d/50d05b12ccc4b0dada584adc995dd045e0d763d5.jpeg)

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [July 21, 2022, 10:05am UTC](https://forums.unrealengine.com/t/turn-on-lights-with-trigger-box-and-widget-button-press/609311/5 "2022-07-21T10:05:34Z")

</div>

sure! I hope this video Helps! 🙂

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/9/e49d57f4e555088d04e4141b7c91b86adacf561a.jpeg "Unreal Engine - Lights and Switches") ](https://www.youtube.com/watch?v=PBCi0qqsj5Y)
