-- Headshunt Exit Controller local exit_signal = POS(-4178,15,-2742) --customise to yard specs if not F.yard_active() then return end __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 then if atc_arrow then if F.has_rc("TY_DEPART") then print("Train departs yard to mainline at full speed") F.remove_rc({"TY_DEPART"}) atc_set_ars_disable(false) -- set_route(exit_signal,"Exit Yard") atc_send("S6D10SM") -- schedule_in(";05","deactivate_check") print(F.get_rc_safe()) return end else atc_send("BBOL") F.error(true) end end if event.schedule then if event.msg == "deactivate_check" then if not atc_id then F.yard_active(false) else schedule_in(";05","deactivate_check") return end end end