blob: 53bf8c411830fd339a64a81cf4009c92dc7f16c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
if event.ext_int then
if not atc_id then
print("No train")
return
end
F.remove_rc({"DLG_north_reverse","DLG_shunt_platforms","DLG_shunt_Freight4"})
F.add_rc("DLG_exit_north")
atc_send("I+S0WR;S4D10SM")
print("Train departing DLG\nTrain id: "..atc_id)
end
__approach_callback_mode = 1
if event.approach and not event.has_entered then
atc_set_lzb_tsr(1)
end
if event.train and atc_arrow then
atc_send("S1")
end
|