summaryrefslogtreecommitdiff
path: root/durt/nodes/(-3604,8,-2281).lua
blob: 2fb3175a031907ef7b94a1af1bc48066c2f840dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
local dir = "west"
if event.train and atc_arrow then
	if F.has_rc("Treefarm_exit_west") then
		F.remove_rc({"Treefarm_exit_west"})
		return
	end

	local rc = get_rc() or ""
	if rc:match("Treefarm_headshunt_"..dir) then
		schedule_in(";01",atc_id)
		return
	end
end

if event.schedule then
	if event.msg == atc_id then
		schedule_in(";01",event.msg)
		return
	else
		atc_send_to_train(event.msg,"S0WRS3CplA0S1D2S0WRA1S3")
		return
	end
end