summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4130,5,-5630).lua
blob: 0045f17a4b1979ff2c0671fefe6cb37dc6957581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local pt = POS(-4129,5,-5628)
local bt = POS(-4132,4,-5626)
local dir = "r"
if event.train then
	if atc_arrow then
		setstate(pt,dir)
		setstate(bt,"on")
		atc_send("S5")
		schedule_in(";05",true)
	end
end

if event.schedule then
	if atc_id then
		schedule_in(";05",true)
		return
	else
		setstate(bt,"off")
		return
	end
end