summaryrefslogtreecommitdiff
path: root/durt/nodes/(1949,7,9112).lua
blob: 164a2539e2da336504ed47f4d6cd709777bd9184 (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
local ind = POS(1951,7,9111)
__approach_callback_mode = 1
if event.approach and not event.has_entered then
	atc_set_ars_disable(true)
	atc_set_lzb_tsr(1)
end

if event.train and atc_arrow then
	F.remove_rc({"WOA_ttb_s"})
	if F.indicator(ind) then
		schedule_in(";02","send")
	end
	atc_send("B0WR")
end

if (event.ext_int and event.message == "notify") or (event.schedule and event.message == "send") or (event.channel=="train_ctl" and event.msg=="send") then
	print(rwt.to_string(rwt.now()) .. " WOA RX Notification")
	if not atc_id then 
		F.indicator(ind,true)
		return
	end
	set_route(POS(1942,8,9102),"Exit South")
	atc_send("I+S0WRD2;SMA1")
	F.indicator(ind,false)
	return
end