summaryrefslogtreecommitdiff
path: root/durt/nodes/(-585,26,2478).lua
blob: f79b2c99e014dab6a421eab2e5e983b9fd856161 (plain)
1
--arrow points west towards working HS
local lane = 4
if S.yard_active == true then
	if atc_arrow then
		set_route("CANNERY_W"..lane, "HEADSHUNT")
		-- turnouts should already be set by the train returning from HS
		local plen = train_length()
		local rc = split_at_fc("B0",3)
		local trc = "CAN_"..rc
		if plen == train_length() and (rc == "" or S.rc:match(trc)) then
			S.exiting = true
		end
		if rc and rc ~= "" then
			set_rc("CAN_"..rc)
		else
			set_rc(S.rc)
			S.exiting = true
		end
	end
end