Sensor Looks: Thermal, Night Vision and X-ray
README.md
GogglesRig (component)
Gives every player their own sensor goggles. Put one on any entity in a scene (one is enough for all players); it needs no sibling components. On each machine it activates the goggles controls for that machine's own player (N / d-pad up / the "Goggles" touch button to put them on and off, B and V / d-pad right and left / "Mode" and "Mode back" to cycle, G / d-pad down / "Ping") and runs the Goggles module every frame, so one player in night vision never changes what another sees.
entity.spawn("Goggles").component.add("sensorGoggles.GogglesRig", {
modes = { "gen3NightVision", "militaryThermal", "submarineSonar" },
powerStyle = "tube",
hud = "military",
})
| Field | Default | Meaning |
|---|---|---|
modes | {} | The sensor modes to cycle: styleLook or block ids. Empty takes the defaults (gen-3 night vision, military thermal, sci-fi scanner, submarine sonar, horror infrared, infrared landscape, blacklight party, airport scanner). |
powerStyle | "tube" | instant, tube, crt or digital. |
hud | "military" | military, scifi, crt, minimal or none. |
startOn | false | Goggles on as soon as the player arrives. |
controls | true | Read the goggles controls. Off, your game drives the Goggles module itself. |
Fields are not synced: every machine reads the same values from the scene, and each player's goggles state stays their own.
Known limits
- Two rigs in one scene both read the controls and fight over the same goggles; keep one.
- Removing the rig switches the goggles off.