rednet_message event
Triggered by the rednet coroutine and is created from the modem_message event. For most use cases, rednet.receive is usually easier to use.
|
|||
| Prints messages received through rednet. Requires that there is a modem open for rednet to use. | |||
| Code | <nowiki>
while true do
local event, senderId, message, protocol = os.pullEvent("rednet_message")
print("Computer", senderId, "sent a message", message, "with the", protocol, "protocol!")
end
</nowiki>
|
||
| rednet_message Event | |
|---|---|
Returns
| |
| Source | CC:Tweaked |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.