blob: ad9f2d5eabe598a455daaff36ed7c0865d19bea5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
local testpos=POS(-5716,2,-3919)
local chn="out"
local newstate='off'
if event.type=="punch" then
if is_passive(testpos) then
if newstate==nil then digiline_send(chn,"true | "..getstate(testpos))
else
digiline_send(chn,"true | "..getstate(testpos).." | "..tostring(newstate))
setstate(testpos,newstate)
end
else digiline_send(chn,"false")
end
end
|