summaryrefslogtreecommitdiff
path: root/durt/nodes/(-3821,18,-4761).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:21 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:21 +0200
commitddaee135d42ede8b4970f2c2cce973f5c03234f1 (patch)
treef14d2a66f18808b4414dbf4aaff5d48b1e4017bb /durt/nodes/(-3821,18,-4761).lua
parent5f72b7ec62a6f2fb8ce6b9d5379f03a3e4126971 (diff)
downloadluaatc_envs-ddaee135d42ede8b4970f2c2cce973f5c03234f1.tar.gz
luaatc_envs-ddaee135d42ede8b4970f2c2cce973f5c03234f1.tar.bz2
luaatc_envs-ddaee135d42ede8b4970f2c2cce973f5c03234f1.zip
State at 2020-09-28
Diffstat (limited to 'durt/nodes/(-3821,18,-4761).lua')
-rw-r--r--durt/nodes/(-3821,18,-4761).lua24
1 files changed, 10 insertions, 14 deletions
diff --git a/durt/nodes/(-3821,18,-4761).lua b/durt/nodes/(-3821,18,-4761).lua
index 14c0d7c..64f31ae 100644
--- a/durt/nodes/(-3821,18,-4761).lua
+++ b/durt/nodes/(-3821,18,-4761).lua
@@ -1,14 +1,10 @@
-if atc_arrow then
- if (event.type == "train") then
- atc_send("B0")
- setstate("SFH-T2-S", "cr")
- set_rc("sfh_shunt")
- interrupt(5, "proceed")
- elseif (event.type == "int") then
- set_route("sfh-T1-headshunt", "Enter Headshunt")
- split_at_index(2, "")
- atc_send("S2")
- end
-else
- atc_send("B0WRS1")
-end \ No newline at end of file
+if (event.type == "train") then
+ local rc = get_rc()
+ if rc == "sfh_service" then
+ set_autocouple() atc_send("B0") set_rc("sfh_shunt") interrupt(5, "proceed")
+ else atc_send("B0WD3OCRSM")
+ unset_autocouple()
+ set_rc("sfh_service")
+ set_line("SHBL")
+ atc_set_text_outside("Sulfur Hills Branch Line -> Desert Junction") end elseif (event.type == "int") then set_route("sfh-T1-headshunt", "Enter Headshunt") split_off_locomotive("B0OL")
+ setstate("SFH-T2-S", "cr") atc_send("S2") end \ No newline at end of file