summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1433,11,-2563).lua
blob: 7ac821ed19a373aee8200ca53ccff67beb197a0a (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
	atc_set_ars_disable(true)
	atc_set_lzb_tsr(1)
	return
end

if event.train and atc_arrow then
	if not F.has_rc("S27_EXP_WAIT") then
		atc_set_ars_disable(false)
		return
	end
	atc_send("S0")
	return
end

if event.ext_int and atc_id then
	F.remove_rc("S27_REV_West S27_EXP_WAIT")
	F.add_rc("S27_REV_East S27_EXP_DEPART")
	atc_send("S3")
	atc_set_ars_disable(false)
	set_autocouple()
	return
end