-- far_luaatctrack_findopenroute_01.lua local signal_pos = "FareastEndEntrySignal" local last_route = "3" local proposed_route_name = "" if event.type == "train" then if not atc_id then return end if atc_arrow then atc_send("B0") end for i = 1, last_route, 1 do l = tostring(i) proposed_route_name = "Far East End (Platform " .. l .. ")" if can_set_route(signal_pos, proposed_route_name) then set_route(signal_pos, proposed_route_name) F.print("Train ID " .. atc_id .. " going on " .. proposed_route_name) atc_send("SM") end end end