This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Binarin's profile picture

Turtle Redstone Input

Started by Binarin, 26 February 2012 - 11:41 AM
Binarin #1
Posted 26 February 2012 - 12:41 PM
Hello pros.

I've just tried out ComputerCraft, mostly the Turtles. I'm a programmer, but lua is a new language to me.
I'm trying to make some kind of pathfinder, I'm probably going to use Dijkstras algorithm, but I'm having problems to assign a goal. I was thinking of using redstone input at the goal, so the Turtle can detect it, but I don't really understand how to do it.

Can someone give me a short example how to see if there is any redstone input to/around the Turtle?
Liraal #2
Posted 26 February 2012 - 01:03 PM

redstone.getInput(side)  --guess what this does :D/>/>
redstone.setOutput(side)  --and this one is just as strange:D

can i use your redstone road idea for my turtle road function?
It'd be nice and workable with it.
Binarin #3
Posted 26 February 2012 - 01:59 PM
I thought it was that function… I I'll try it again next time.

Sure, you can use it!
Liraal #4
Posted 26 February 2012 - 02:05 PM
Thanks, man!