summaryrefslogtreecommitdiff
path: root/Tyard/nodes/(-4059,12,-2714).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:14 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:14 +0200
commit5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971 (patch)
tree85f5c29c1dde0bedb823aa60a48015312670396a /Tyard/nodes/(-4059,12,-2714).lua
parentc21692e0a830e434675014dd7b54736d180ce71d (diff)
downloadluaatc_envs-5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971.tar.gz
luaatc_envs-5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971.tar.bz2
luaatc_envs-5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971.zip
State at 2020-08-29
Diffstat (limited to 'Tyard/nodes/(-4059,12,-2714).lua')
-rw-r--r--Tyard/nodes/(-4059,12,-2714).lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tyard/nodes/(-4059,12,-2714).lua b/Tyard/nodes/(-4059,12,-2714).lua
new file mode 100644
index 0000000..f89a6ec
--- /dev/null
+++ b/Tyard/nodes/(-4059,12,-2714).lua
@@ -0,0 +1 @@
+--waiting lane -- config'd for the southbound-waiting lane -- train nose points south, using a north signal local dir = "N" local waiting_signal = "TY_WAITING_"..dir if S.yard_active then if atc_id then atc_send("B0") interrupt(10,"recheck") end else -- send train to "headshunt" if not atc_id then return end S.yard_active = true step_fc() local rc = get_rc() or "" S.rc = rc --check for RTS if S.single_dir == true or S.rc:match("TY_RTS") then S.dir = dir --working end = entrance dir S.RTS = true -- to direct train to PICKUP lane. AROUND_dir will be set by the pickup track else --invert S.dir --working end ~= entrance end if dir == "N" then S.dir = "S" else S.dir = "N" end end set_rc("PICKUP") set_route(waiting_signal,"HEADSHUNT") atc_set_text_outside("Proceeding to Classification Yard") atc_send("S0WRS4") end \ No newline at end of file