Difference between revisions of "Rednet message (event)"
From ComputerCraft Wiki
(Um, no, the distance is not calculated between the modems, but between the computers.) |
|||
Line 3: | Line 3: | ||
|desc=Fired when any Rednet message arrives through an open modem. | |desc=Fired when any Rednet message arrives through an open modem. | ||
|return1=The computer ID of the sender (see [[os.computerID|os.getComputerID()]]). | |return1=The computer ID of the sender (see [[os.computerID|os.getComputerID()]]). | ||
− | |return2=The message as a {{type|string}}. If message was previously a table see [[textutils.unserialize]] | + | |return2=The message as a {{type|string}}. If message was previously a table see [[textutils.unserialize]]() |
− | |return3=The distance between the | + | |return3=The distance (in blocks) between the computers. |
}} | }} | ||
{{Example | {{Example |
Revision as of 11:25, 4 October 2013
Event rednet_message | |
Fired when any Rednet message arrives through an open modem. | |
Returned Object 1 | The computer ID of the sender (see os.getComputerID()). |
Returned Object 2 | The message as a string. If message was previously a table see textutils.unserialize() |
Returned Object 3 | The distance (in blocks) between the computers. |