Dunel, on 15 April 2012 - 05:36 PM, said:
Hi.
I am new to this forum.
I need help with a radio-detonated bomb. Theorethically, I know what to do, but:
1.I don't know how to send a message(fell free to call me a noob
/> ).
2.I don't know if the receiving program works. Here it is.
Thanks for any help!
for send do:
rednet.open("side of modem")
print("press any key to detonate")
os.pullEvent("key")
rednet.broadcast("boom")
for recieve do:
rednet.open("side of modem")
while true do
id, msg = rednet.receive()
if msg == "boom" then
redstone.setOutput("back", true)
end
end