blob: 26904d326eb9c538999895cbf47021c50b5167a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
local indicator = POS(-2080,6,826)
local rc = (get_rc() or "")
if rc:match("ArcLoad_NOSHUNT") then return end
if event.train and atc_arrow then
if getstate(indicator) == "green" then
F.remove_rc({"ArcLoad_split","ArcLoad_around","ArcLoad_rejoin"},true)
atc_send("S0WRD1A1S2D10SM")
setstate(indicator,"red")
set_rc(rc.." ArcLoad_exit")
else
local o_text = atc_get_text_outside() or ""
atc_set_text_outside("Waiting for Locomotive")
split_off_locomotive("A0B0",1)
atc_set_text_outside(o_text)
set_rc(rc.." ArcLoad_split ArcLoad_around ArcLoad_rejoin")
setstate(indicator,"green")
end
end
|