Update tabletRadar.lua

This commit is contained in:
erius0 2021-01-08 20:54:22 +03:00 committed by GitHub
parent 704cce4c34
commit 2ac7b0534e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,12 @@
local component = require("component") local component = require("component")
local radar = component.radar local radar = component.radar
print("нажми D чтобы выйти из радара") print("радар запущен")
while true do while true do
local players = radar.getPlayers() local players = radar.getPlayers()
for i = 1, #pl_list do for i = 1, #pl_list do
print('Имя: '.. pl_list[i].name) print(players[i].name.." ; Расстояние: "..players[i].distance.." ; Координаты: x = "..players[i].x.." z = "..players[i].z.." y = "..players[i].y)
print('Дистанция: '..pl_list[i].distance) print("")
print('Координаты: x = '..pl_list[i].x..' y = '..pl_list[i].y..' z = '..pl_list[i].z)
print(' ')
end end
end end