Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Laser
- rednet.open("left")
- local mottafra = 8
- local output = "right"
- while true do
- id, msg = rednet.receive()
- print("")
- print("Fra "..id)
- print(msg)
- if id == mottafra and msg == "redlaseron" then
- print("Laser er på!")
- rs.setOutput(output, true)
- end
- if id == mottafra and msg == "redlaseroff" then
- print("Laser er av!")
- rs.setOutput(output, false)
- end
- end
Add Comment
Please, Sign In to add comment