summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1444,11,-2546).lua
blob: 235e7d3ff17025b81a90eab4448e43642fa5a513 (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
local ind = POS(-1444,10,-2546)
local function send_train()
	set_rc("S27_SHUNTER S27_REV_East S27")
	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