blob: 26a4ecb4ecfd50da1b2777bb337755cbfffba16c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
local pt = POS(-4129,5,-5628)
local bt = POS(-4132,4,-5626)
local dir = "s"
if event.train then
if atc_arrow then
setstate(pt,dir)
setstate(bt,"on")
atc_send("S5")
schedule_in(";05",true)
end
end
if event.schedule then
if atc_id then
schedule_in(";05",true)
return
else
setstate(bt,"off")
return
end
end
|