Create tabletRadar
This commit is contained in:
parent
9d2479e7b4
commit
4a731d5ede
1 changed files with 15 additions and 0 deletions
15
tabletRadar
Normal file
15
tabletRadar
Normal 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
|
Loading…
Reference in a new issue