Advertisement
Hikooshi

Программа для дрона

Mar 1st, 2016
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. local modem = component.proxy(component.list('modem')())
  2.  
  3.  
  4.  
  5. local a1={}
  6.  
  7. local port=467
  8. modem.open(port)
  9.  
  10. while true do
  11. local rng, _, _, _, _, any = computer.pullSignal()
  12. if rng == "modem_message" then
  13. pcall(load(any))
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement