From 29dbe3d4d02010ae3d6c289a4fee01709008c7c0 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:56:23 +0200 Subject: State at 2022-03-04 --- durt/nodes/(-4623,7,-6597).lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 durt/nodes/(-4623,7,-6597).lua (limited to 'durt/nodes/(-4623,7,-6597).lua') diff --git a/durt/nodes/(-4623,7,-6597).lua b/durt/nodes/(-4623,7,-6597).lua new file mode 100644 index 0000000..4095975 --- /dev/null +++ b/durt/nodes/(-4623,7,-6597).lua @@ -0,0 +1,26 @@ +local split_indicator = POS(-4630,8,-6589) +__approach_callback_mode = 1 + +if event.approach and not event.has_entered then + if F.has_rc("BFT_around_test") == false then return end + + atc_set_ars_disable(true) + atc_set_lzb_tsr(1) +end + +if event.train then + if F.has_rc("BFT_around_test") == false then return end + if not atc_arrow then return end + local state = getstate(split_indicator) + if state == "off" then + split_off_locomotive("A0B0OL",1) + atc_send("S3") + atc_set_ars_disable(false) + setstate(split_indicator,"on") + set_rc((get_rc() or "").." BFT_Siding_B BFT_shunt_around_Track2 BFT_Mainline_Headshunt BFT_Platform1") + elseif state == "on" then + atc_send("B0WROCA1D2S4D10SM") + setstate(split_indicator,"off") + F.remove_rc({"BFT_Siding_B","BFT_shunt_around_Track2","BFT_Mainline_Headshunt","BFT_Platform1"}) + end +end \ No newline at end of file -- cgit v1.2.3