-- 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