summaryrefslogtreecommitdiff
path: root/durt/nodes/(1904,7,9133).lua
blob: 22bd87c4c7595a186d55f5b7cf45e124ceb46fe8 (plain)
1
local yard_id = "WOA"
__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
	atc_send("S1")
	S.yards[yard_id].last_pass2 = S.yards[yard_id].last_pass1 or rwt.now()
	S.yards[yard_id].last_pass1 = rwt.now()
	S.yards[yard_id].last_id = atc_id
end


if event.train then
	local init = false
	if not S.WOA_stats then
		S.WOA_stats = true
		init = true
	end
	F.stat("WOA_mine",init)
end