summaryrefslogtreecommitdiff
path: root/durt/nodes/(-2080,3,832).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:57:16 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:57:16 +0200
commit286944c0c92f2f08c1d7d664509099425442f240 (patch)
tree00202ca4d8ba94baf70ba7cf1be1c396e3b196fe /durt/nodes/(-2080,3,832).lua
parente13abb46020afb258825a088ac5ff9347f062e4d (diff)
downloadluaatc_envs-286944c0c92f2f08c1d7d664509099425442f240.tar.gz
luaatc_envs-286944c0c92f2f08c1d7d664509099425442f240.tar.bz2
luaatc_envs-286944c0c92f2f08c1d7d664509099425442f240.zip
State at 2022-05-14
Diffstat (limited to 'durt/nodes/(-2080,3,832).lua')
-rw-r--r--durt/nodes/(-2080,3,832).lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/durt/nodes/(-2080,3,832).lua b/durt/nodes/(-2080,3,832).lua
new file mode 100644
index 0000000..9a71d83
--- /dev/null
+++ b/durt/nodes/(-2080,3,832).lua
@@ -0,0 +1,32 @@
+local dir_indicator = POS(-2079,7,803)
+local this_dir = true
+
+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
+