summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4129,5,-5630).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:53:49 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:53:49 +0200
commit7122450e716aa4ef98f8af8579953a0bfc0caff0 (patch)
treef08f713f9e27b26d97b4145a5420d3491a0d115d /durt/nodes/(-4129,5,-5630).lua
parentf9e81e14be7244d3c298f8e578feb9a8b335c711 (diff)
downloadluaatc_envs-7122450e716aa4ef98f8af8579953a0bfc0caff0.tar.gz
luaatc_envs-7122450e716aa4ef98f8af8579953a0bfc0caff0.tar.bz2
luaatc_envs-7122450e716aa4ef98f8af8579953a0bfc0caff0.zip
State at 2021-08-01
Diffstat (limited to 'durt/nodes/(-4129,5,-5630).lua')
-rw-r--r--durt/nodes/(-4129,5,-5630).lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/durt/nodes/(-4129,5,-5630).lua b/durt/nodes/(-4129,5,-5630).lua
new file mode 100644
index 0000000..26a4ecb
--- /dev/null
+++ b/durt/nodes/(-4129,5,-5630).lua
@@ -0,0 +1,21 @@
+local pt = POS(-4129,5,-5628)
+local bt = POS(-4132,4,-5626)
+local dir = "s"
+if event.train then
+ if atc_arrow then
+ setstate(pt,dir)
+ setstate(bt,"on")
+ atc_send("S5")
+ schedule_in(";05",true)
+ end
+end
+
+if event.schedule then
+ if atc_id then
+ schedule_in(";05",true)
+ return
+ else
+ setstate(bt,"off")
+ return
+ end
+end \ No newline at end of file