Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- local last = os.startTimer(0.1)
- while true do
- local numb = 0
- local event,arg1,arg2 = os.pullEvent()
- if rs.getInput("front") then
- numb = 208
- elseif rs.getInput("back") then
- numb = 200
- elseif rs.getInput("left") then
- numb = 203
- elseif rs.getInput("right") then
- numb = 205
- elseif rs.getInput("top") then
- elseif rs.getInput("bottom") then
- end
- rednet.broadcast(tostring(numb))
- if event == "timer" and arg1 == last then
- last = os.startTimer(0.1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement