blob: a30b8374146fdb3dad56377bcb0a5cc5086cd057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
if atc_arrow then
if get_rc():match("DLG_shunt") then
atc_send("BBWRSM")
F.remove_rc({"DLG_shunt"},true)
else
atc_send("BB")
end
end
if event.channel=="train_ctl" and event.msg=="send" then
if not atc_id or not atc_arrow then
digiline_send("error","Error "..os.time())
return
end
atc_send("S3")
set_rc((get_rc() or "").." DLG_shunt")
split_at_index(2,"BB")
set_autocouple()
return
end
|