blob: 7926f0bf355e6ca3c0efd8a8d0219b130b9c4691 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
-- S27 Export Arrivals Splitter
if not F.has_rc("S27_EXPORT_ACTIVE") then return end
if not atc_arrow then -- loco has rejoined from headshunt
F.remove_rc_match("S27_EXP_DIR_%S+")
return
end
local fc = split_at_fc("A0B0",1) or "DEPART" --should be either SAND_RAMP or DIRT_LOAD. anything else goes to departures
F.add_rc({
"S27_EXP_HS_N",
"S27_EXP_DIR_"..fc
})
if fc == "DEPART" then
F.add_rc("S27_EXP_HS_N_AC")
end
|