summaryrefslogtreecommitdiff
path: root/X_Nihilo/nodes/(2225,-36,5931).lua
blob: e6a12cd94e79e2389415b58d5f70f9bb9f284560 (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_station2_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,"cr")
          interrupt(r,"departure")
          return
     end
end

if event.type == "int" then
     if event.message == "departure" then
          setstate(switch,"st")
          atc_send("OCD2SM");
     end
     return
end