From aeea70df13db7d77ce2ce1075cbd14dc1c3797fc Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:56:58 +0200 Subject: State at 2022-04-19 --- Tyard/nodes/(-4100,12,-2745).lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Tyard/nodes/(-4100,12,-2745).lua (limited to 'Tyard/nodes/(-4100,12,-2745).lua') diff --git a/Tyard/nodes/(-4100,12,-2745).lua b/Tyard/nodes/(-4100,12,-2745).lua new file mode 100644 index 0000000..16007e9 --- /dev/null +++ b/Tyard/nodes/(-4100,12,-2745).lua @@ -0,0 +1,33 @@ +-- Yard arrival checker +local function enter_yard() + F.dir(true) + F.yard_active(true) + atc_set_ars_disable(false) + atc_send("S6") + return +end + +__approach_callback_mode = 1 +if event.approach and not event.has_entered then + atc_set_ars_disable(true) + atc_set_lzb_trs(1) + return +end + +if event.train then + if F.yard_active() then + schedule_in(";10","recheck") + return + else + enter_yard() + end +end + +if event.schedule then + if F.yard_active() then + schedule_in(";10","recheck") + return + else + enter_yard() + end +end \ No newline at end of file -- cgit v1.2.3