summaryrefslogtreecommitdiff
path: root/Crossroads/nodes/(-5710,2,-3917).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:51:45 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:51:45 +0200
commit0b14726c5539782a60d2f4beaed2cfca74a50f7a (patch)
tree1de6e16c565f7bb9806552fc587d7eac870b6b00 /Crossroads/nodes/(-5710,2,-3917).lua
downloadluaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.tar.gz
luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.tar.bz2
luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.zip
State at 2019-12-13
Diffstat (limited to 'Crossroads/nodes/(-5710,2,-3917).lua')
-rw-r--r--Crossroads/nodes/(-5710,2,-3917).lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/Crossroads/nodes/(-5710,2,-3917).lua b/Crossroads/nodes/(-5710,2,-3917).lua
new file mode 100644
index 0000000..65f7991
--- /dev/null
+++ b/Crossroads/nodes/(-5710,2,-3917).lua
@@ -0,0 +1,14 @@
+local testpos=POS(-5716,2,-3919)
+local chn="out"
+local newstate=nil
+
+if event.type=="punch" then
+ if is_passive(testpos) then
+ if newstate==nil then digiline_send(chn," true\n "..getstate(testpos))
+ else
+ digiline_send(chn," true\n "..getstate(testpos).."\n "..newstate)
+ setstate(testpos,newstate)
+ end
+ else digiline_send(chn," false")
+ end
+end \ No newline at end of file