summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1442,11,-2568).lua
blob: 6888f6bc52b132ec7c84f4274447a5de8d387db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local ind = POS(-1444,10,-2546)
if event.train and atc_arrow then
	if not F.has_rc("S27_SHUNTER") then
		step_fc()
		split_off_locomotive("BBA0")
		F.add_rc("S27_REV_West S27_EXP_WAIT S27_EXP_COLLECT")
		F.indicator(ind,true)
		return
	end
	unset_autocouple()
	atc_send("A0BB")
	if train_length() > 2 then -- if length > 2 it would try to discouple the nose
		split_at_index(train_length()-1,"BBWRD2S3A1")
		return
	end
	atc_send("BBWRD2S3A1")
end