so, i've discovered the great sensor and want to make an automatic door :b but for some reason i just cant wrap my head around it..
i've tryed this:
sensor = peripheral.wrap("left")
while true do
for _, name in pairs(sensor.getPlayerNames()) do
if name == "Plazter" then
-- Open function --
else
-- close function --
end
sleep(1)
end
- so.. It actually do react on it.. but for some reason get stuck at "open" and dont go further to the close part Any idea why ?
Regards Plazter
Edited by plazter, 24 February 2014 - 04:08 PM.












