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

[Lua][Question] Bundled Cables input?

Started by ciba43, 19 June 2012 - 02:25 PM
ciba43 #1
Posted 19 June 2012 - 04:25 PM
I have found out that I can use BundledCables to controll something. So how to get the input? I used this (found out in help redpower):


c = rs.getBundledInput( "right" )
red = colors.test( c, colors.red )

And I tried this:


c = rs.getBundledInput("right")
red = colors.test(c, colors.red)

But it throw error At line 1. What is wrong? Help me!
Dirkus7 #2
Posted 19 June 2012 - 04:44 PM
Try using rs.testBundledInput("right", colors.red)
ciba43 #3
Posted 27 June 2012 - 12:56 PM
Thanks, it works.