diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-12-09 00:00:01 +0100 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-12-09 00:00:01 +0100 |
commit | c4849997e8d0c9a99ee7b24e0495a99d9ddb7e83 (patch) | |
tree | c9dfdca907d48922dac2a251fb0ff8b41155c242 /durt/nodes/(-1973,16,800).lua | |
parent | df137f9521f19584393e65f7d987c29d3a2219a3 (diff) | |
download | luaatc_envs-c4849997e8d0c9a99ee7b24e0495a99d9ddb7e83.tar.gz luaatc_envs-c4849997e8d0c9a99ee7b24e0495a99d9ddb7e83.tar.bz2 luaatc_envs-c4849997e8d0c9a99ee7b24e0495a99d9ddb7e83.zip |
State at 2024-12-09
Diffstat (limited to 'durt/nodes/(-1973,16,800).lua')
-rw-r--r-- | durt/nodes/(-1973,16,800).lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/durt/nodes/(-1973,16,800).lua b/durt/nodes/(-1973,16,800).lua index e6166e8..ca1446e 100644 --- a/durt/nodes/(-1973,16,800).lua +++ b/durt/nodes/(-1973,16,800).lua @@ -2,6 +2,7 @@ local notification_id = "ARC" local ind = POS(-1954,16,840) local print_notification = true local sections ={ + departures = "262432", -- Destined for Byard store_4 = "032832" -- Destined for Arcadius Basement Loading Dock } local function send_train() @@ -32,6 +33,22 @@ local function send_train() "ARC_AUTO_LOCAL_LOADING", --direct to ARC Basement Loading Dock "ARC_LOAD", --trigger the loading track } + elseif #section_occupancy(sections.departrues) ~= 0 then + if print_notification then print(rwt.to_string(rwt.now()).. " "..notification_id.." send_train() has local job from STORE_4") end + cmd = { -- collect wagons from BYARD, and park loco in loco siding if no departures at ARC + "FREIGHT", + "ARC_LOCOSTORE", + "ARC_AUTO", + "ARC_RTS", + "ARC_COLLECT_ARC_SB", + "ARC_YARD_REENTRY", + "ARC_2ND_EXIT_ARC_AUTO_S23S", + "S23E3N", + "BYARD", + "BY_RTS", + "BY_COLLECT_ARC", + "E3S23N", + } end set_rc(table.concat(cmd," ")) atc_send("S0WRD2A1S4") |