Jump to content




I feel stupid asking this but?


  • You cannot reply to this topic
3 replies to this topic

#1 Lowprofile

  • New Members
  • 1 posts

Posted 01 June 2014 - 10: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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 01 June 2014 - 11:19 PM

The side name needs to be a string, so use "right" instead of right.

#3 IsaacTBeast

  • Members
  • 86 posts
  • LocationI 'm inside your brian

Posted 02 June 2014 - 06: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)


#4 AssossaGPB

  • Members
  • 126 posts
  • LocationFlorida, USA

Posted 03 June 2014 - 01:42 AM

Also, you have no delay inbetween the last redstone command and first, this will cause the redstone to always be on.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users