Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- env = {}
- env.side = "right"
- env.time = 3
- rednet.open("bottom")
- while true do
- evnt = {os.pullEvent("rednet_message")}
- if evnt[3] == "odrn:pc" then
- rs.setOutput(env.side,true)
- sleep(env.time)
- rs.setOutput(env.side,false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement