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

I feel stupid asking this but?

Started by Lowprofile, 01 June 2014 - 09:05 PM
Lowprofile #1
Posted 01 June 2014 - 11:05 PM
I'm very new to this, and don't really understand it all that well, but I'm giving it a go, what's wrong here?

while true do
rs.setOutput(right, true)
sleep(1)
rs.setOutput(right, false)
end

Cheers

Lowprofile
Lyqyd #2
Posted 02 June 2014 - 12:19 AM
The side name needs to be a string, so use "right" instead of right.
IsaacTBeast #3
Posted 02 June 2014 - 07:01 AM
Tip: If there is not quotes on rs.setOutput(right,true) it means that your describing a variable but if you put quotes on both sides it means that your describing a string or the side of your rs output is.

Heres the Logic of rs.setOutput(right, true):

local right = "right"
local left = "left"
rs.setOutput(right, true)
rs.setOutput(left, true)

Heres the Logic with quotes:

rs.setOutput("right", true)
rs.setOutput("left", true)
AssossaGPB #4
Posted 03 June 2014 - 02:42 AM
Also, you have no delay inbetween the last redstone command and first, this will cause the redstone to always be on.