summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4129,9,-5588).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-4129,9,-5588).lua')
-rw-r--r--durt/nodes/(-4129,9,-5588).lua29
1 files changed, 26 insertions, 3 deletions
diff --git a/durt/nodes/(-4129,9,-5588).lua b/durt/nodes/(-4129,9,-5588).lua
index 2dd69c1..44e6501 100644
--- a/durt/nodes/(-4129,9,-5588).lua
+++ b/durt/nodes/(-4129,9,-5588).lua
@@ -4,9 +4,32 @@ local lights = {
POS(-4127,5,-5617),
POS(-4131,5,-5617)
}
+local pt = POS(-4129,5,-5628)
+local bt = POS(-4132,4,-5626)
-if event.train and atc_arrow then
- for _,v in pairs(lights) do
- setstate(v,"on")
+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
+ setstate(pt,"r")
+ atc_send("S3")
+ end
+ else
+ atc_send("S3D5S0WRD1S3")
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