▣
module · drop-in viewer
switchModel
A real wall light switch at true size (86 x 86 mm plate, the European standard; 9 mm proud of the wall): an off-white plate with a softened edge and a rocker, for a scene's `build.luau`.
by·posted 3d ago
What it does
switchModel
A real wall light switch at true size (86 x 86 mm plate, the European standard; 9 mm proud of the wall):
an off-white plate with a softened edge and a rocker, for a scene's build.luau.
local SwitchPlate = require("stations.switchModel").SwitchPlate
local s = SwitchPlate("hall_switch") -- root at the plate's back centre, face toward +Z
s.localPosition = { x, 1.1, z }; s.localRotation = ... -- 1.1 m is the usual switch height
s.component.add("LightSwitch", { lights = "hall_light", label = "Hall lights" })
The rocker is a child entity named <name>_rocker that LightSwitch tips.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.