Difference between revisions of "Rednet.announce"

From ComputerCraft Wiki
Jump to: navigation, search
(Changed return type to a boolean success from nil, as the function returns false like rednet.send() if there is no modem active, and true if there is.)
Line 3: Line 3:
 
|name=rednet.announce
 
|name=rednet.announce
 
|api=rednet
 
|api=rednet
 +
|returns=[[boolean]] success code. True if a message has been sent, false if not. "true" does not guarantee, that any computer was reachable!
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Broadcasts an empty rednet message.  
 
|desc=Broadcasts an empty rednet message.  

Revision as of 16:02, 10 November 2012


Grid Redstone.png  Function rednet.announce
Broadcasts an empty rednet message.
Syntax rednet.announce()
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

Grid paper.png  Example
Broadcasts an empty rednet message.
Code
rednet.announce()