summaryrefslogtreecommitdiff
path: root/durt
diff options
context:
space:
mode:
Diffstat (limited to 'durt')
-rw-r--r--durt/nodes/(-2132,8,914).lua14
-rw-r--r--durt/nodes/(-4129,9,-5588).lua2
-rw-r--r--durt/nodes/(-4132,6,-5690).lua2
3 files changed, 14 insertions, 4 deletions
diff --git a/durt/nodes/(-2132,8,914).lua b/durt/nodes/(-2132,8,914).lua
index cc7893f..aabe5ae 100644
--- a/durt/nodes/(-2132,8,914).lua
+++ b/durt/nodes/(-2132,8,914).lua
@@ -1,2 +1,12 @@
---
---programming track \ No newline at end of file
+local trigger = POS(-2130,21,925)
+if event.train then
+ if getstate(trigger)=="off" then return end
+ digiline_send("ars_set_query",true)
+ return
+end
+
+if event.digiline and event.channel=="ars_set" and atc_id then
+ set_rc(event.msg)
+ setstate(trigger,"off")
+ return
+end \ No newline at end of file
diff --git a/durt/nodes/(-4129,9,-5588).lua b/durt/nodes/(-4129,9,-5588).lua
index 44e6501..fdce6e6 100644
--- a/durt/nodes/(-4129,9,-5588).lua
+++ b/durt/nodes/(-4129,9,-5588).lua
@@ -20,7 +20,7 @@ if event.train then
atc_send("S3")
end
else
- atc_send("S3D5S0WRD1S3")
+ if tostring(get_rc() or ""):match("DLG_shunt") then atc_send("S3D5S0WRD1S3") end
end
end
diff --git a/durt/nodes/(-4132,6,-5690).lua b/durt/nodes/(-4132,6,-5690).lua
index ab62d6c..a30b837 100644
--- a/durt/nodes/(-4132,6,-5690).lua
+++ b/durt/nodes/(-4132,6,-5690).lua
@@ -8,7 +8,7 @@ if atc_arrow then
end
if event.channel=="train_ctl" and event.msg=="send" then
- if not atc_id or atc_arrow then
+ if not atc_id or not atc_arrow then
digiline_send("error","Error "..os.time())
return
end