Jump to content




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


3 replies to this topic

#1 rickydaan

  • Members
  • 93 posts
  • LocationThe Netherlands

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

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

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


#3 rickydaan

  • Members
  • 93 posts
  • LocationThe Netherlands

Posted 15 December 2012 - 10:45 PM

yeah, but i made my own read function! So sorry :3

#4 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 15 December 2012 - 10:48 PM

What exactly do you want :?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users