summaryrefslogtreecommitdiff
path: root/ers/nodes/(1991,2,1794).lua
blob: b81d9e1973af78f517d6b6f2969ac1e69e07d5d9 (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
27
28
-- luaatctrack_docking_ferry_01.lua
local show_print = false
local do_something = false
if event.train then
  atc_set_text_outside(nil)
  atc_set_text_inside(nil)
  local passive_name = "DOCKSIGNAL"
  if atc_arrow then
    local can_do_route = false
    atc_send("B0 W R OC D1 S5")
    can_do_route = F.send_route(passive_name, "DOCK 5", show_print)
    if can_do_route == false then
      can_do_route = F.send_route(passive_name, "DOCK 4", show_print)
      if can_do_route == false then
        can_do_route = F.send_route(passive_name, "DOCK 3", show_print)
        if can_do_route == false then
          can_do_route = F.send_route(passive_name, "DOCK 2", show_print)
          if can_do_route == false then
            can_do_route = F.send_route(passive_name, "DOCK 1", show_print)
          end
        end
      end
    end
  else
    do_something = false
  end
  return
end