Posted 24 February 2014 - 04:08 PM
Hello there pros!
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:
Any idea why ? :)/> and what im doing wrong? :b
Regards Plazter
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 ? :)/> and what im doing wrong? :b
Regards Plazter
Edited on 24 February 2014 - 03:08 PM