LuaScripts/tabletRadar.lua

16 lines
432 B
Lua
Raw Normal View History

2021-01-08 17:13:28 +00:00
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