Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --client
- local channel = 1
- local modem = peripheral.wrap("front")
- modem.open(channel)
- while true do
- local event, side, freq, rfreq, msg = os.pullEvent()
- if event == "modem_message" then
- if msg == "on" then
- if not rs.getOutput("top") then
- rs.setOutput("top", true)
- end
- elseif msg == "off" then
- if rs.getOutput("top") then
- rs.setOutput("top", false)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement