Posted 05 May 2013 - 04:24 AM
Hello all, I have a question involving variables(I think). I'm trying to write a frame airship control program, so far, i can make it travel in one direction 10 blocks by running my program out to a wireless transmitter. I would like to set it up to travel any distance, without having to write a program for every distance. I would like to be able to type East 10 or East 100, and have it travel that far. Here is my program;
for i=1, 20, 1 do
output= "left"
redstone.setOutput(output, true)
sleep(.5)
redstone.setOutput(output, false)
sleep(.5)
end
Any help on this would be greatly appreciated!
for i=1, 20, 1 do
output= "left"
redstone.setOutput(output, true)
sleep(.5)
redstone.setOutput(output, false)
sleep(.5)
end
Any help on this would be greatly appreciated!