Difference between revisions of "Digiline HV reactor monitor"

From Pandorabox
Jump to navigation Jump to search
(Created page with " === Overview === Howto for a digiline controlled HV Reactor monitor === Lua Controller === <syntaxhighlight lang="Lua"> if event.type == "interrupt" then digiline_sen...")
(No difference)

Revision as of 17:08, 20 September 2019

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