|entity||Entity that will have its light enabled or disabled.||Entity||Yes|
|enabled||Determines the light's state (on or off).||Boolean||Yes|
Results: The entity with an ID of “lamp” will have its light disabled (i.e. it will be turned off and no longer cast light until turned on again).
Use the Set Entity Light Enabled function to toggle a room's light on and off when the player interacts with a switch or button.