summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4626,7,-6638).lua
blob: b22f859826740101fcf761e04ffa4685f997864e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local signal = POS(-4626,7,-6616)
if event.train and atc_arrow then
	if F.has_rc("BFT_shunt_platforms") then
		local control = {"A0S0WD2RA1"}
		if F.has_rc("BFT_shunt_Platform1") then
			set_route(signal,"SHUNT Platform 1")
			control[2] = "S3CplS1"
		elseif F.has_rc("BFT_shunt_Track2") then
			set_route(signal,"SHUNT Track 2")
			control[2] = "S3CplS1"
		elseif F.has_rc("BFT_shunt_around_Track2") then
			set_route(signal,"Around via Track 2")
			control[2] = "S4"
		end
		control = table.concat(control,"")
		atc_send(control)
		return
	end
end