summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4128,6,-5692).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:54:13 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:54:13 +0200
commitdfe3614d14551ac7b3722f39a93a8e377cb59f9d (patch)
tree99e07ea08327c83fd0be60c0dffe6e553303eae1 /durt/nodes/(-4128,6,-5692).lua
parent7be240db492756b5a412555a9ae9531d59f4cc4a (diff)
downloadluaatc_envs-dfe3614d14551ac7b3722f39a93a8e377cb59f9d.tar.gz
luaatc_envs-dfe3614d14551ac7b3722f39a93a8e377cb59f9d.tar.bz2
luaatc_envs-dfe3614d14551ac7b3722f39a93a8e377cb59f9d.zip
State at 2021-08-30
Diffstat (limited to 'durt/nodes/(-4128,6,-5692).lua')
-rw-r--r--durt/nodes/(-4128,6,-5692).lua20
1 files changed, 20 insertions, 0 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