summaryrefslogtreecommitdiff
path: root/durt/nodes/(-3593,19,-3930).lua
blob: b3993db9d27385e2196e8e8e5e8be7b4471eec66 (plain)
1
2
do return end
local id = "DJnc_4"		--change here
if (event.train and atc_arrow) then
  setstate(POS(-3596,18,-3927),"st")
	if not S.runarounds[id].active then
		S.runarounds[id].active = true
		atc_set_text_outside("Please Wait\nTrain Changing Ends")	--change here
		split_off_locomotive("B0WROL")
		set_autocouple()
		set_rc("runaround")		--change here
		return
	else
		S.runarounds[id].active = nil
		atc_send("OCB0WRD1SM")
		set_rc("sfh_service") 	--change here
		atc_set_text_outside("Sulfur Hills Branch Line -> Sulfur Hills")
		set_line("SHBL")
		unset_autocouple()
   setstate(POS(-3596,18,-3945),"st")
	end
end