Difference between revisions of "Rednet.broadcast"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
(Corrected mapping from "Boolean" to "Boolean (type)") |
||
Line 3: | Line 3: | ||
|name=rednet.broadcast | |name=rednet.broadcast | ||
|args=[[string]] message | |args=[[string]] message | ||
− | |returns=[[boolean]] success code. True if a message has been sent, false if not. "true" does not guarantee, that any computer was reachable! | + | |returns=[[boolean_(type)|boolean]] success code. True if a message has been sent, false if not. "true" does not guarantee, that any computer was reachable! |
|api=rednet | |api=rednet | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 13:46, 30 November 2012
Function rednet.broadcast | |
Sends a message to all Computer in Range. (see rednet.send and rednet.receive). | |
Syntax | rednet.broadcast(string message) |
Returns | boolean success code. True if a message has been sent, false if not. "true" does not guarantee, that any computer was reachable! |
Part of | ComputerCraft |
API | rednet |
Examples
Example | |
Sends a Message to all Computers (assuming a modem is attached and open) | |
Code |
rednet.broadcast("ComputerCraft") |