summaryrefslogtreecommitdiff
path: root/auto_yards/nodes/(-584,26,2481).lua
blob: 2995aaad46cf96ed44d45663da86c125d07aa79d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- Cannery departures lane modified

local ind = POS(-594,26,2488) --notification indicator

if F.has_rc("CAN_INTRA_SHUFFLE") then
	if not atc_arrow then atc_send("A0S1CplD2S1") return end
	split_off_locomotive("A0B0")
	F.remove_rc("CAN_CLASS_DEPARTURES")
	F.add_rc({
		"CAN_HS_W",
		"CAN_send_to_locostore"
	})
	atc_send("A1S3")
	F.indicator(ind,true) --re-enable the notification as we haven't actually left the yard yet
	F.indicator(S.yards.CAN.active_indicator_pos, false) -- disable the active indicator
	return
end
-- EOL
F.lane_EOL("CAN",true)