Xyzzy

MultiFloorLift - F3-F1

Jan 19th, 2013
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local inS = "right"
  2. local otS = "left"
  3. local udS = "back"
  4. h = io.open("counter", "w")
  5.  
  6. function Pulse(nColors)
  7.   rs.setBundledOutput(otS, nColors)
  8.   sleep(0.2)
  9.   rs.setBundledOutput(otS, 0)
  10. end
  11.  
  12. h:write("1")
  13. h:close()
  14.  
  15. while true do
  16.   if rs.getInput(udS) == true then
  17.     Pulse(colors.yellow)
  18.     sleep(0.2)
  19.     shell.run("2floor-drv")
  20.   else
  21.     shell.run("2floor-drv")
  22.   end
  23. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×