diff options
-rw-r--r-- | durt/nodes/(-4128,6,-5692).lua | 20 | ||||
-rw-r--r-- | durt/nodes/(-4129,9,-5588).lua | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/durt/nodes/(-4128,6,-5692).lua b/durt/nodes/(-4128,6,-5692).lua new file mode 100644 index 0000000..19d83df --- /dev/null +++ b/durt/nodes/(-4128,6,-5692).lua @@ -0,0 +1,20 @@ +if atc_arrow then + if get_rc():match("DLG_shunt") then + atc_send("BBWRSM") + F.remove_rc({"DLG_shunt"},true) + else + atc_send("BB") + end +end + +if event.channel=="train_ctl" and event.msg=="send" then + if not atc_id or not atc_arrow then + digiline_send("error","Error "..os.time().."\nArrow:"..tostring(atc_arrow).."\nID:"..tostring(atc_id)) + return + end + atc_send("S3") + set_rc((get_rc() or "").." DLG_shunt") + split_at_index(2,"BB") + set_autocouple() + return +end
\ No newline at end of file diff --git a/durt/nodes/(-4129,9,-5588).lua b/durt/nodes/(-4129,9,-5588).lua index fdce6e6..3c66810 100644 --- a/durt/nodes/(-4129,9,-5588).lua +++ b/durt/nodes/(-4129,9,-5588).lua @@ -16,7 +16,7 @@ if event.train then atc_send("BB") schedule_in(";05",true) else - setstate(pt,"r") + setstate(pt,"s") atc_send("S3") end else |