disable / enable light at certain places

Hi,
I have attached a light bulb to a third person character setup to simulate a torch much needed in some very dark places. Obviously this torch is not needed when the character is outside.

My question :

How to switch on and off this light bulb when the character arrives in rooms or goes back outside ?

Thank you

You can set “trigger boxes” inside the rooms that call a toggle event on the Pawn when Pawn overlaps with them.

Sample: Trigger box set up in a room :cool:

For our trigger box, we set the On Component Begin Overlap and **On Component End Overlap **to call the **Toggle Light **event on our Pawn.

Our **Toggle Light **event is simply setting the intensity of the light - the functionality may differ depending on how your turning on / off your light. I hope this helps :slight_smile:

Thanks a lot, I am going to give this a try :wink: