summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4128,6,-5692).lua
blob: 19d83dfc9bb68acc7ff55a77b8658f24393f4892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if atc_arrow then
	if get_rc():match("DLG_shunt") then
		atc_send("BBWRSM")
		F.remove_rc({"DLG_shunt"},true)
	else
		atc_send("BB")
	end
end

if event.channel=="train_ctl" and event.msg=="send" then
	if not atc_id or not atc_arrow then
		digiline_send("error","Error "..os.time().."\nArrow:"..tostring(atc_arrow).."\nID:"..tostring(atc_id))
		return
	end
	atc_send("S3")
	set_rc((get_rc() or "").." DLG_shunt")
	split_at_index(2,"BB")
	set_autocouple()
	return
end