Digiline HV reactor monitor

From Pandorabox
Revision as of 17:08, 20 September 2019 by BuckarooBanzai (talk | contribs) (Created page with " === Overview === Howto for a digiline controlled HV Reactor monitor === Lua Controller === <syntaxhighlight lang="Lua"> if event.type == "interrupt" then digiline_sen...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Howto for a digiline controlled HV Reactor monitor

Lua Controller

if event.type == "interrupt" then
 digiline_send("sensor", "GET")
 interrupt(1)
end

if event.type == "program" then
 interrupt(1)
end

if event.type == "digiline" then
 if event.msg == "technic:hv_nuclear_reactor_core_active" then
  port.a = false
  port.c = true
 else
  port.a = true
  port.c = false
 end
end

Setup