signal = "foundry_roads_sorting" if (event.train and atc_arrow) or (event.int and event.message == "check_signal" and atc_id) then if can_set_route(signal,"Out Road (Loadout)") then set_route(signal,"Out Road (Loadout)") elseif can_set_route(signal,"In Road (Fuel In)") then set_route(signal,"In Road (Fuel In)") else if atc_speed > 0 then atc_send("S0") else atc_send("B0") end interrupt(5,"check_signal") return end atc_send("S1") return end