diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:48 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:48 +0200 |
commit | f2833edacd927c01fcce286c84a7a2bfb9c12fd1 (patch) | |
tree | a842ad64bef62b3b447c799e67d1601c2773110d /durt/nodes | |
parent | 332b2694822230c548dd2aed28944daed911039e (diff) | |
download | luaatc_envs-f2833edacd927c01fcce286c84a7a2bfb9c12fd1.tar.gz luaatc_envs-f2833edacd927c01fcce286c84a7a2bfb9c12fd1.tar.bz2 luaatc_envs-f2833edacd927c01fcce286c84a7a2bfb9c12fd1.zip |
State at 2022-04-05
Diffstat (limited to 'durt/nodes')
-rw-r--r-- | durt/nodes/(-2080,3,822).lua | 3 | ||||
-rw-r--r-- | durt/nodes/(-2081,1,811).lua | 3 | ||||
-rw-r--r-- | durt/nodes/(-4144,16,-5792).lua | 6 |
3 files changed, 10 insertions, 2 deletions
diff --git a/durt/nodes/(-2080,3,822).lua b/durt/nodes/(-2080,3,822).lua index d450d7d..bc97348 100644 --- a/durt/nodes/(-2080,3,822).lua +++ b/durt/nodes/(-2080,3,822).lua @@ -6,13 +6,14 @@ if type(rc) == "string" then rc = function() return "" end end if rc():match("ArcLoad_NOSHUNT") then return end if event.train and atc_arrow then - print(get_rc()) if getstate(indicator) == "green" then F.remove_rc(shunting_rc,true) atc_send("S0WRD1A1S2D10SM") setstate(indicator,"red") set_rc(rc().." ArcLoad_exit") + print("Arcload departing") else + print("Arcload arrived") local o_text = atc_get_text_outside() or "" atc_set_text_outside("Waiting for Locomotive") split_off_locomotive("A0B0",1) diff --git a/durt/nodes/(-2081,1,811).lua b/durt/nodes/(-2081,1,811).lua new file mode 100644 index 0000000..1ee1917 --- /dev/null +++ b/durt/nodes/(-2081,1,811).lua @@ -0,0 +1,3 @@ +if event.punch then + interrupt_pos(POS(-4144,16,-5792)) +end
\ No newline at end of file diff --git a/durt/nodes/(-4144,16,-5792).lua b/durt/nodes/(-4144,16,-5792).lua index b8098f1..369fa2e 100644 --- a/durt/nodes/(-4144,16,-5792).lua +++ b/durt/nodes/(-4144,16,-5792).lua @@ -1,8 +1,12 @@ if event.ext_int then - if not atc_id then return end + if not atc_id then + print("No train") + return + end F.remove_rc({"DLG_north_reverse","DLG_shunt_platforms","DLG_shunt_Freight4"}) F.add_rc("DLG_exit_north") atc_send("I+S0WR;S4D10SM") + print("Train departing DLG") end __approach_callback_mode = 1 |