summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4129,9,-5588).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:42 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:42 +0200
commit572b186e28ddc2a630613765c0f0780b4664380f (patch)
treee93412c97c577b04bbf12749bfe61470e001063a /durt/nodes/(-4129,9,-5588).lua
parent5c7f77725394d47ce0b907aabf885ea207a507bd (diff)
downloadluaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.gz
luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.bz2
luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.zip
State at 2024-10-15HEADmaster
Diffstat (limited to 'durt/nodes/(-4129,9,-5588).lua')
-rw-r--r--durt/nodes/(-4129,9,-5588).lua44
1 files changed, 0 insertions, 44 deletions
diff --git a/durt/nodes/(-4129,9,-5588).lua b/durt/nodes/(-4129,9,-5588).lua
deleted file mode 100644
index 86a9f95..0000000
--- a/durt/nodes/(-4129,9,-5588).lua
+++ /dev/null
@@ -1,44 +0,0 @@
-local lights = {
- POS(-4131,5,-5623),
- POS(-4127,5,-5623),
- POS(-4127,5,-5617),
- POS(-4131,5,-5617)
-}
-local pt = POS(-4129,5,-5628)
-local bt = POS(-4132,4,-5626)
-
-if event.train then
- if atc_arrow then
- for _,v in pairs(lights) do
- setstate(v,"on")
- end
- if getstate(bt)=="on" then
- atc_send("BB")
- schedule_in(";05",true)
- else
- if (get_rc() or ""):match("CAN_corn") then
- setstate(pt,"r")
- atc_send("B1")
- else
- setstate(pt,"s")
- atc_send("S3")
- end
- end
- else
- if tostring(get_rc() or ""):match("DLG_shunt") then
- atc_send("S3D5S0WRD1S3")
- else
- atc_send("SM")
- end
- end
-end
-
-if event.schedule then
- if getstate(bt)=="on" then
- atc_send("BB")
- schedule_in(";05",true)
- else
- setstate(pt,"r")
- atc_send("S3")
- end
-end \ No newline at end of file