Posted 29 June 2013 - 05:34 PM
Hi, this is one of my first programs, so i dont really know a lot of CC other that some of the wiki contents.
I want to be able to say a function followed by a variable, where the variable is a string that completes the rs.setBundledOutput("back", here goes the variable). So i created the 3 variables i need, but i dont know how to say to the command to fill the space there.
I want to be able to say a function followed by a variable, where the variable is a string that completes the rs.setBundledOutput("back", here goes the variable). So i created the 3 variables i need, but i dont know how to say to the command to fill the space there.
--Variables
local move = "colors.white"
local deploy = "colors.black"
local bb = "colors.cyan"
--Function
function pulse()
rs.setBundledOutput("back", --i need the variable here
sleep(0.5)
rs.setBundledOutput("back", 0)
end
--Program
function MainProg
count = 0
while true do
count = count + 1
pulse(move)
sleep(4)
pulse(deploy)
sleep(27)
pulse(bb)
sleep(1)
print ("Finished : "..count)
end
MainProg()
Sorry for my bad english, sometimes its hard to write what i want.