diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:59 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:59 +0200 |
commit | 7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400 (patch) | |
tree | ec8bd4ab176ee2874fec6a83ba85db7125e426fd /Tyard/nodes/(-3967,12,-2646).lua | |
parent | 4590cc6504d625404f0af394da41bb71fc2dec45 (diff) | |
download | luaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.tar.gz luaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.tar.bz2 luaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.zip |
State at 2022-04-21
Diffstat (limited to 'Tyard/nodes/(-3967,12,-2646).lua')
-rw-r--r-- | Tyard/nodes/(-3967,12,-2646).lua | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/Tyard/nodes/(-3967,12,-2646).lua b/Tyard/nodes/(-3967,12,-2646).lua index 341efa9..828ca13 100644 --- a/Tyard/nodes/(-3967,12,-2646).lua +++ b/Tyard/nodes/(-3967,12,-2646).lua @@ -1 +1,36 @@ --- Headshunt Exit Controller
\ No newline at end of file +-- Headshunt Exit Controller +local exit_signal = POS(-3962,14,-2645) +__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") + return + 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
\ No newline at end of file |