Create tabletRadar

This commit is contained in:
erius0 2021-01-08 20:13:28 +03:00 committed by GitHub
parent 9d2479e7b4
commit 4a731d5ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
tabletRadar Normal file
View file

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