From 286944c0c92f2f08c1d7d664509099425442f240 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:57:16 +0200 Subject: State at 2022-05-14 --- durt/nodes/(-2080,3,832).lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 durt/nodes/(-2080,3,832).lua (limited to 'durt/nodes/(-2080,3,832).lua') 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 + -- cgit v1.2.3