summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1442,11,-2568).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-31 00:00:02 +0100
committerautocommitter <autocommitter@linux-forks.de>2024-10-31 00:00:02 +0100
commitc019cfb8391dae72a1480e6d8ae8f06ff3d702ee (patch)
tree046a04c226916b6e9ba46ea675ddf649b7194ad9 /durt/nodes/(-1442,11,-2568).lua
parent22e2624c6c07bc7b4d51bac1365b22c8ed27bbc2 (diff)
downloadluaatc_envs-c019cfb8391dae72a1480e6d8ae8f06ff3d702ee.tar.gz
luaatc_envs-c019cfb8391dae72a1480e6d8ae8f06ff3d702ee.tar.bz2
luaatc_envs-c019cfb8391dae72a1480e6d8ae8f06ff3d702ee.zip
State at 2024-10-31
Diffstat (limited to 'durt/nodes/(-1442,11,-2568).lua')
-rw-r--r--durt/nodes/(-1442,11,-2568).lua30
1 files changed, 19 insertions, 11 deletions
diff --git a/durt/nodes/(-1442,11,-2568).lua b/durt/nodes/(-1442,11,-2568).lua
index 6888f6b..6b7502e 100644
--- a/durt/nodes/(-1442,11,-2568).lua
+++ b/durt/nodes/(-1442,11,-2568).lua
@@ -1,17 +1,25 @@
-local ind = POS(-1444,10,-2546)
+--S27 Export Arrivals
if event.train and atc_arrow then
- if not F.has_rc("S27_SHUNTER") then
- step_fc()
- split_off_locomotive("BBA0")
- F.add_rc("S27_REV_West S27_EXP_WAIT S27_EXP_COLLECT")
- F.indicator(ind,true)
+ if not F.has_rc("S27_SHUNTER") then return end
+ if train_length() == 1 then
+ F.add_rc({
+ "S27_LOCOSTORE",
+ "S27_EXP_HS_N",
+ "S27_EXP_AROUND",
+ "S27_EXP_HS_S"
+ })
+ atc_send("S0WD3RS3")
return
end
- unset_autocouple()
- atc_send("A0BB")
- if train_length() > 2 then -- if length > 2 it would try to discouple the nose
- split_at_index(train_length()-1,"BBWRD2S3A1")
+ if not F.has_rc("S27_EXPORT_ACTIVE") then
+ split_off_locomotive("A0B0",1)
+ F.add_rc({
+ "S27_EXPORT_ACTIVE",
+ "S27_EXP_HS_S",
+ "S27_EXP_AROUND",
+ })
return
end
- atc_send("BBWRD2S3A1")
+ atc_send("S0WD3RS1")
+ return
end \ No newline at end of file