Advertisement
Techokami

radartest.lua

Jul 6th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local component = require("component")
  2. local radar = component.radar
  3.  
  4. function print_r (t, indent)
  5. local indent=indent or ''
  6. for key,value in pairs(t) do
  7. io.write(indent,'[',tostring(key),']')
  8. if type(value)=="table" then io.write(':\n') print_r(value,indent..'\t')
  9. else io.write(' = ',tostring(value),'\n') end
  10. end
  11. end
  12.  
  13. print_r(radar.getEntities())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement