summaryrefslogtreecommitdiff
path: root/durt/nodes/(-2080,19,731).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-2080,19,731).lua')
-rw-r--r--durt/nodes/(-2080,19,731).lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/durt/nodes/(-2080,19,731).lua b/durt/nodes/(-2080,19,731).lua
new file mode 100644
index 0000000..440ca17
--- /dev/null
+++ b/durt/nodes/(-2080,19,731).lua
@@ -0,0 +1,32 @@
+local dir_indicator = POS(-2079,7,803)
+local this_dir = false
+
+if event.schedule then
+ if not atc_id then
+ atc_send_to_train(event.msg,"B0WRD1S1")
+ return
+ end
+ if event.msg == atc_id then
+ schedule_in(";01",atc_id)
+ return
+ else
+ atc_send("BB")
+ atc_send_to_train("BB")
+ return
+ end
+ return
+end
+
+if event.train and atc_arrow then
+ if F.has_rc("ARC_LOAD_reverse") and F.dir(dir_indicator) == this_dir then
+ set_autocouple()
+ schedule_in(";01",atc_id)
+ return
+ end
+ if F.has_rc("ARC_LOAD_exit") then
+ F.remove_rc({"ARC_LOAD_exit"})
+ atc_send("D5SM")
+ return
+ end
+end
+