summaryrefslogtreecommitdiff
path: root/durt/nodes/(1847,17,4266).lua
blob: cd01ee149395f544962769623ed76a9e576d6a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if event.train then
	if not atc_arrow then
		atc_set_ars_disable(true)
		return
	end

	if F.has_rc("OAF_COLLECT_OUTBOUND") then --shunter has joined the chat
		F.remove_rc("OAF_COLLECT_OUTBOUND")
		step_fc()
		atc_send("S4D20SM")
		atc_set_ars_disable(false)
		return
	end
	-- depositing wagons
	F.remove_rc("OAF_INBOUND")
	F.add_rc({
		"OAF_WAGON_NO_MOVE",
		"OAF_HS_S",
		"OAF_LocoStore"
	})
	split_off_locomotive("A0S0",1)
	atc_send("S4")
	F.remove_rc("OAF_WAGON_NO_MOVE")
	atc_set_ars_disable(false)
	return
end