Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function send( nRecipient, sMessage )
- for n,sModem in ipairs( peripheral.getNames() ) do
- if isOpen( sModem ) then
- peripheral.call( sModem, "transmit", nRecipient, os.getComputerID(), sMessage )
- return true
- end
- end
- error( "No open sides" )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement