summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1444,11,-2546).lua
blob: e0bf68f6bbf5917c25629ed05f9a1c7c6ebf0642 (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
27
28
29
30
31
local ind = POS(-1444,10,-2546)
local function send_train()
	local rc = {
		"FREIGHT",
		"S27_SHUNTER",
		"S27_EXP",
		"ARC_AUTO",
		"ARC_COLLECT_S27_EXPORT"
	}
	set_rc(table.concat(rc," "))
	atc_send("S0WRD2A1S4")
	F.indicator(ind,false)
end
if event.ext_int then
	if F.indicator(ind) then return end
	if atc_id then
		send_train()
		return
	else
		F.indicator(ind,true)
		return
		end
end
if event.train then
	if F.indicator(ind) then
		send_train()
		return
	end
	atc_send("B0")
	return
end