summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:54:58 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:54:58 +0200
commitcaf32a229dd58e96a8f66070352d6aae7e700593 (patch)
tree0aa61ba42329a5b0f26e5e9b321215bcc4055251
parent42061129acdcdc71a9fd3732314f3c95fe09139f (diff)
downloadluaatc_envs-caf32a229dd58e96a8f66070352d6aae7e700593.tar.gz
luaatc_envs-caf32a229dd58e96a8f66070352d6aae7e700593.tar.bz2
luaatc_envs-caf32a229dd58e96a8f66070352d6aae7e700593.zip
State at 2021-11-02
-rw-r--r--durt/nodes/(-4134,5,-5629).lua14
-rw-r--r--durt/nodes/(-4134,5,-5631).lua24
2 files changed, 38 insertions, 0 deletions
diff --git a/durt/nodes/(-4134,5,-5629).lua b/durt/nodes/(-4134,5,-5629).lua
new file mode 100644
index 0000000..7dab90e
--- /dev/null
+++ b/durt/nodes/(-4134,5,-5629).lua
@@ -0,0 +1,14 @@
+local lights = {
+ POS(-4131,5,-5623),
+ POS(-4127,5,-5623),
+ POS(-4127,5,-5617),
+ POS(-4131,5,-5617)
+}
+
+if event.train then
+ if atc_arrow then
+ for _,v in pairs(lights) do
+ setstate(v,"on")
+ end
+ end
+end \ No newline at end of file
diff --git a/durt/nodes/(-4134,5,-5631).lua b/durt/nodes/(-4134,5,-5631).lua
new file mode 100644
index 0000000..d30218f
--- /dev/null
+++ b/durt/nodes/(-4134,5,-5631).lua
@@ -0,0 +1,24 @@
+local lights = {
+ POS(-4131,5,-5623),
+ POS(-4127,5,-5623),
+ POS(-4127,5,-5617),
+ POS(-4131,5,-5617)
+}
+
+if event.train then
+ if atc_arrow then
+ schedule_in(";05",true)
+ return
+ end
+end
+
+if event.schedule then
+ if atc_id then
+ schedule_in(";05",true)
+ return
+ else
+ for _,v in pairs(lights) do
+ setstate(v,"off")
+ end
+ end
+end \ No newline at end of file