summaryrefslogtreecommitdiff
path: root/durt/nodes/(-2084,9,918).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-2084,9,918).lua')
-rw-r--r--durt/nodes/(-2084,9,918).lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/durt/nodes/(-2084,9,918).lua b/durt/nodes/(-2084,9,918).lua
index ae8e76f..dbf9fcf 100644
--- a/durt/nodes/(-2084,9,918).lua
+++ b/durt/nodes/(-2084,9,918).lua
@@ -1 +1 @@
-if event.type=="digiline" then if event.channel ~= "trainctl" then return end if event.msg == "send" then setstate(POS(-2085,11,918),"green") if atc_id and atc_arrow then atc_send("B5S5") elseif atc_id and atc_arrow == false then atc_send("B0S0WRS5") end interrupt(10,"clear_signal") return elseif event.msg == "open" then setstate(POS(-2085,11,918),"green") return elseif event.msg == "close" then setstate(POS(-2085,11,918),"red") return end return end if event.type=="int" then if event.msg=="clear_signal" then setstate(POS(-2085,11,918),"red") end return end \ No newline at end of file
+if event.type=="digiline" then if event.channel ~= "trainctl" then return end if event.msg == "send" then setstate(POS(-2085,11,918),"green") setstate(POS(-2084,9,915),"on") if atc_id and atc_arrow then atc_send("S0B0WRD1RB5S5") elseif atc_id and atc_arrow == false then atc_send("B0S0WRS5") end interrupt(10,"clear_signal") return elseif event.msg == "open" then setstate(POS(-2085,11,918),"green") setstate(POS(-2084,9,915),"on") return elseif event.msg == "close" then setstate(POS(-2085,11,918),"red") setstate(POS(-2084,9,915),"off") return end return end if event.type=="int" then if event.msg=="clear_signal" then setstate(POS(-2085,11,918),"red") end return end \ No newline at end of file