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

[READ] Edited read function to be able to receive Rednet Messages.

Started by rickydaan, 14 December 2012 - 12:44 AM
rickydaan #1
Posted 14 December 2012 - 01:44 AM
Hello Everyone!

I got a quick question. I need a read function so i can use it in a parallel function to receive rednet messages. Thank you VERY much if i can have this function without needing to put credits or something :3

Rickydaan
theoriginalbit #2
Posted 14 December 2012 - 01:52 AM
do you mean something like this


-- Make sure you open rednet somewhere that wont be called many times (unless your closing it again)


function listener()
   senderId, message = rednet.receive()
   -- do whatever here
end

-- make sure you add listener into the parallel call
rickydaan #3
Posted 15 December 2012 - 10:45 PM
yeah, but i made my own read function! So sorry :3
remiX #4
Posted 15 December 2012 - 10:48 PM
What exactly do you want :?