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

redstone activated program

Started by chowder64, 05 May 2012 - 12:19 PM
chowder64 #1
Posted 05 May 2012 - 02:19 PM
i am trying to make a turtle bombing team and i want them to start at the same time with redstone
i have done bombing bit but all i need is a redstone activation
so they wait until a redstone signal then follow the rest of the program
BigSHinyToys #2
Posted 05 May 2012 - 02:29 PM
this should do it

while true do
event = os.pullEvent()
if event = "redstone" then
break
end
end
--[[youre code bellow here]]--
chowder64 #3
Posted 05 May 2012 - 02:38 PM
this should do it

while true do
event = os.pullEvent()
if event = "redstone" then
break
end
end
--[[youre code bellow here]]--

it say "then expected"
line 3
BigSHinyToys #4
Posted 05 May 2012 - 02:48 PM
slight fail on my part here

while true do
event = os.pullEvent()
if event == "redstone" then
break
end
end
--[[youre code bellow here]]--
chowder64 #5
Posted 05 May 2012 - 02:53 PM
thank you it works now
chowder64 #6
Posted 05 May 2012 - 02:58 PM
just tested that with the bomber and that was awesome