This is an old revision of the document!
Enables or disables the light attached to any entities in the specified group (with the assumption that each entity is a light source).
|group_name||Group of entities that will have their light enabled or disabled.||String||Yes|
|enabled||Determines the state of the lights (on or off).||Boolean||Yes|
If you'd like to change the color of the entity group's lights instead of toggling them on or off, see the related Set Group Light Color function.
Results: All entities in the “torches” group will have their lights enabled (i.e. they will be turned on and now cast light).
Use the Set Group Light Enabled function to toggle a room's lights on and off when the player interacts with a switch or button.