From 34fe0d5ffd14919fdb9495e45cfca294b248eefb Mon Sep 17 00:00:00 2001 From: autocommitter Date: Sun, 3 Nov 2024 00:00:02 +0100 Subject: State at 2024-11-03 --- durt/nodes/(-4181,13,-5787).lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 durt/nodes/(-4181,13,-5787).lua (limited to 'durt/nodes/(-4181,13,-5787).lua') diff --git a/durt/nodes/(-4181,13,-5787).lua b/durt/nodes/(-4181,13,-5787).lua new file mode 100644 index 0000000..15a77da --- /dev/null +++ b/durt/nodes/(-4181,13,-5787).lua @@ -0,0 +1,16 @@ +if not atc_arrow then return end +if F.has_rc("COLLECT") then atc_send("B2CplS2") return end +local options = { + {route = "SHUNT Centre", section = "250710"}, + {route = "SHUNT Right", section = "403524"}, + {route = "SHUNT Left", section = "779419"}, + {route = "SHUNT Far Right", section = "810627"}, +} +for _,v in ipairs(options) do + if not section_occupancy(v.section)[1] then + set_route(POS(-4183,13,-5788),v.route) + atc_set_ars_disable(true) + return + end +end +print("No automatic routes available. Check manually") \ No newline at end of file -- cgit v1.2.3