Posted 26 April 2016 - 03:26 AM
I'm trying to get this timer loop to work but it wont restart the timer when the loop restarts, I've tried putting myTimer in the loop but it doesnt start the timer at all then.
*snip*
local myTimer = os.startTimer(6)
while true do
local event, par1 = os.pullEvent()
if event == "timer" and par1 == myTimer then
if rs.getAnalogInput('front') < 14 then
Send()
end
else if event == "redstone" then
end
end
end