summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1924,13,-1692).lua
blob: 9d2f57fb51829085b66eeed71a66d177a0842084 (plain)
1
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