Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Multifloor Sender V0.1 by QQII
- --Declerations
- local modem = peripheral.wrap("right") --Wraps the modem on the right side.
- local floor = 0 --Floor to open
- --Initial
- if (not modem) or (peripheral.getType("right") ~= "modem") then
- print("ERROR: no wireless modem found")
- return
- end
- --Main Loop
- while true do
- floor = tonumber(read())
- modem.transmit(1000, 0, floor)
- os.sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement