summaryrefslogtreecommitdiff
path: root/durt/nodes/(1894,23,4548).lua
blob: 5245388042a5ee9217e9ac739e41e553849cff57 (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
__approach_callback_mode = 1
if event.approach and not event.has_entered then
	if not F.has_rc("OAF_BRANCH_REVERSE") then return end
	atc_set_lzb_tsr(2)
	return
end
if event.train then
	if not atc_arrow then return end
	if not F.has_rc("OAF_BRANCH_REVERSE") then return end
	schedule_in(";01",atc_id)
	print("start ping")
	return
end
if event.schedule then
	if atc_id == event.msg then
		schedule_in(";01", atc_id)
		print("ping")
		return
	end
	print("end ping")
	atc_send_to_train(event.msg, "S0WRD2SM")
	local newstate = getstate(POS(1894, 21, 4548))
	setstate(POS(1892, 23, 4547))
	return
end