Posted 01 September 2017 - 12:41 AM
So me and my buds just got into Tekkit again and I only just found out about the beauty that is computercraft. Been looking at guides all over the place, youtube, off-site (https://www.tutorialspoint.com/lua/lua_loops.htm), the original wiki.
Overall I'd just like to be able to code time-able loops, or atleast have a way to put a delay on my commands. (sleep(?))
This is what I've got so far but it just keeps returning the same error, I've tried pretty much every variant I can think off.
a = 1
while a = 0 do
redpulse left 1 5
sleep(3)
end
I'd love for it to go back to the beginning and execute the redpulse command again. Planning to use this method to keep a truckload of redstone engines on 24/7. Overall any guidance on things I need to watch out for is greatly appreciated. I see programming as my one and only hobby and this has been making me pull my hair out, all I can think off is that you can't put the redpulse command in a program?
Overall I'd just like to be able to code time-able loops, or atleast have a way to put a delay on my commands. (sleep(?))
This is what I've got so far but it just keeps returning the same error, I've tried pretty much every variant I can think off.
a = 1
while a = 0 do
redpulse left 1 5
sleep(3)
end
I'd love for it to go back to the beginning and execute the redpulse command again. Planning to use this method to keep a truckload of redstone engines on 24/7. Overall any guidance on things I need to watch out for is greatly appreciated. I see programming as my one and only hobby and this has been making me pull my hair out, all I can think off is that you can't put the redpulse command in a program?