79 posts
Location
Germany
Posted 19 June 2012 - 03:17 PM
Hi
i want to know :
What's wrong with this code:
side = "left" -- edit able
local x = rs.getBundledOutput(side)
a = colors.combine(x, colors.blue)
rs.setBundledOutput(a)
HELP ME
992 posts
Posted 19 June 2012 - 03:22 PM
Hi
i want to know :
What's wrong with this code:
side = "left" -- edit able
local x = rs.getBundledOutput(side)
a = colors.combine(x, colors.blue)
rs.setBundledOutput(side,a) -- this needs a side
HELP ME
fixed in the above
146 posts
Location
the Netherlands
Posted 19 June 2012 - 04:51 PM
Hi
i want to know :
What's wrong with this code:
side = "left" -- edit able
local x = rs.getBundledOutput(side)
a = colors.combine(x, colors.blue)
rs.setBundledOutput(side,a) -- this needs a side
HELP ME
fixed in the above
Nope, getBundledOutput? should be rs.getBundledInput(side)
side = "left" -- edit able
local x = rs.getBundledInput(side)--we want the input, not the output
a = colors.combine(x, colors.blue)
rs.setBundledOutput(side,a) -- this needs a side
992 posts
Posted 19 June 2012 - 05:38 PM
why would he want to do that rs.getBundledOutput is used to see witch colors you are outputting on. then he adds a new color to that and updates the output vars. This program is not for Input.
Functions in the Redstone API:
redstone.getInput( side )
redstone.setOutput( side, boolean )
redstone.getOutput( side )
redstone.getSides( )
Functions in the Redstone API for working with RedPower bundled cables:
redstone.getBundledInput( side )
redstone.testBundledInput( side, color )
redstone.setBundledOutput( side, colors )
redstone.getBundledOutput( side )
Type "help redpower" for usage examples.
79 posts
Location
Germany
Posted 19 June 2012 - 08:33 PM
Thanks,
I will make a video about this l8er….
but thanks