Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- print("Waighting for Boss!!!")
- local boss = rednet.receive()
- print("Boss is id:"..boss)
- print("IC2 power level: Left")
- print("TE power level: Right")
- while true do
- local a,b = os.pullEvent()
- if b == "hud" then
- rednet.broadcast("toggle")
- end
- local id, analog = rednet.receive()
- if analog ~= "Hello" then
- if id == boss and analog[1] < 16 and analog[2] < 16 then
- rs.setAnalogOutput("left",tonumber(analog[1]))
- rs.setAnalogOutput("right",tonumber(analog[2]))
- --print("Left:"..analog[1].." Right:"..analog[2])
- else
- print("YOUR NOT MY BOSS!!!!")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement