summaryrefslogtreecommitdiff
path: root/Tyard/nodes/(-4100,12,-2742).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:56:59 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:56:59 +0200
commit7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400 (patch)
treeec8bd4ab176ee2874fec6a83ba85db7125e426fd /Tyard/nodes/(-4100,12,-2742).lua
parent4590cc6504d625404f0af394da41bb71fc2dec45 (diff)
downloadluaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.tar.gz
luaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.tar.bz2
luaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.zip
State at 2022-04-21
Diffstat (limited to 'Tyard/nodes/(-4100,12,-2742).lua')
-rw-r--r--Tyard/nodes/(-4100,12,-2742).lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tyard/nodes/(-4100,12,-2742).lua b/Tyard/nodes/(-4100,12,-2742).lua
index 1917d7f..ecc670f 100644
--- a/Tyard/nodes/(-4100,12,-2742).lua
+++ b/Tyard/nodes/(-4100,12,-2742).lua
@@ -1,7 +1,7 @@
-- Headshunt Controller
-- Note: may need customising due to track layout
local this_dir = false -- true = F.dir arrow points north. atc_arrow points towards yard
-local error_indicator = POS(-4025,13,-2671)
+
__approach_callback_mode = 1
if event.approach and not event.has_entered then
atc_set_ars_disable(true)
@@ -11,6 +11,7 @@ end
if event.train then
if not atc_arrow then --train has entered headshunt from yard. bounce or depart
+ F.remove_rc({"TY_HEADSHUNT"})
if not F.has_rc("TY_DEPART") then --if has TY_DEPART then another controller closer to the signal will remove to ensure signal engages the RC
schedule_in(";01",atc_id)
atc_set_ars_disable(true)