Jump to content




Tekkit Classic (Server) Programming Trouble



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

#1 AncientElbow

  • New Members
  • 2 posts

Posted 15 January 2013 - 08:43 PM

Ok, so i have been programming a script but have run in to an error. I am trying to turn a set of lights on and off, the code for turning them on work perfectly, but i was wondering is there a code to turn them off as well? They're running through bundled cable. The code i am using for turning the lights on is this - rs.setBundledOutput("bottom", colors.white) and this does actually turn the lights on, but how would i turn the same piece of code into one that will turn the lights off, i've tried basic like changing rs.set into rs.unset but nothing? any help?

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 January 2013 - 08:46 PM

this is in the wrong section... for coding advice/help post in ask a pro... however here is your answer...

rs.setBundledOutput("bottom", 0 )

#3 AncientElbow

  • New Members
  • 2 posts

Posted 15 January 2013 - 08:53 PM

Thankyou, i didn't really know where to put it, sorry haha

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 January 2013 - 08:59 PM

View PostAncientElbow, on 15 January 2013 - 08:53 PM, said:

Thankyou, i didn't really know where to put it, sorry haha
Your welcome... Thats ok, a few people post in the wrong sections every now and again too :)

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 17 January 2013 - 08:50 AM

Moved to Ask a Pro.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users