Jump to content




[Lua][Question] Bundled Cables input?


2 replies to this topic

#1 ciba43

  • Members
  • 32 posts

Posted 19 June 2012 - 03: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!

#2 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

Posted 19 June 2012 - 03:44 PM

Try using rs.testBundledInput("right", colors.red)

#3 ciba43

  • Members
  • 32 posts

Posted 27 June 2012 - 11:56 AM

Thanks, it works.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users