blob: 1e354b9552c8f2a28d133a09d128a82fc63657d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--
-- I+B0WROLD15OCD2SM;
--
local delta = 45
local switch = "XN_subway_station1_out"
if event.type == "train" then
if atc_arrow then
atc_send("B0WROL")
h = os.time()
r = delta - (h % delta)
if r == 0 then r = delta end
setstate(switch,"st")
interrupt(r,"departure")
return
end
end
if event.type == "int" then
if event.message == "departure" then
setstate(switch,"cr")
-- atc_send("OCD2SM");
end
return
end
|