Advertisement
justync7

door

Jun 26th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. chat=peripheral.wrap("left")
  2. while true do
  3. event, side, name, msg = os.pullEvent()
  4. if name == "justync7" and msg == "HAL, open the pod doors." then
  5. rs.setOutput("top",true)
  6. elseif name == "justync7" and msg == "HAL, close the pod doors." then
  7. rs.setOutput("top",false)
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement