Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hostID =1
- if not rednet.isOpen("front") then
- rednet.open("front")
- end
- while true do
- local e = { os.pullEvent() }
- if e[1] == "rednet_message" then
- if e[2] == hostID then
- if e[3] then
- if e[3] == "on" then
- rs.setOutput("back",true)
- elseif e[3] == "off" then
- rs.setOutput("back",false)
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment