summaryrefslogtreecommitdiff
path: root/durt/nodes/(-3596,18,-3930).lua
blob: 731b66efe2ee33c15a8b358fccf81ca720c68e21 (plain)
1
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