summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4128,5,-5630).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-4128,5,-5630).lua')
-rw-r--r--durt/nodes/(-4128,5,-5630).lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/durt/nodes/(-4128,5,-5630).lua b/durt/nodes/(-4128,5,-5630).lua
new file mode 100644
index 0000000..ef978ad
--- /dev/null
+++ b/durt/nodes/(-4128,5,-5630).lua
@@ -0,0 +1,21 @@
+local pt = POS(-4129,5,-5628)
+local bt = POS(-4132,4,-5626)
+local dir = "l"
+if event.train then
+ if atc_arrow then
+ setstate(pt,dir)
+ setstate(bt,"on")
+ atc_send("S5")
+ schedule_in(";05",true)
+ end
+end
+
+if event.schedule then
+ if atc_id then
+ schedule_in(";05",true)
+ return
+ else
+ setstate(bt,"off")
+ return
+ end
+end \ No newline at end of file