Log inGet started
Package

LightSwitch.component

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

LightSwitch

A wall switch for a group of lights, shared with the room. Put it on the switch plate's entity (see stations.switchModel). Near it with empty hands, Interact (E / pad west / touch) flips the lights named in lights (comma-separated entity names) on or off for everyone; a player joining later sees the switch as it was left. The rocker child (<name>_rocker) tips to show the state.

Fields: lights, on (the state it starts in), range (metres), label (the room, as the prompt names it: "Lights off · Bedroom"). Not offered while a controller or the Game Boy is in hand.

A name in lights may be a Light entity (its intensity goes to 0 when off) or a fixture: any entity whose generated meshes carry emissive materials (a room.CeilingLight, a lamp, the LED strip of a room.KitchenUpper). A fixture's emissive materials go dark with the switch, so its bulb, diffuser and shade stop glowing and the traced GI stops picking them up as emitters.