blob: 15a77da5102018161d1e08230d905ea79bac1864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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")
|