LuaScripts/tabletRadar.lua

13 lines
376 B
Lua
Raw Normal View History

2021-01-08 17:13:28 +00:00
local component = require("component")
local radar = component.radar
2021-01-08 17:54:22 +00:00
print("радар запущен")
2021-01-08 17:13:28 +00:00
while true do
local players = radar.getPlayers()
2021-01-08 17:54:59 +00:00
for i = 1, #players do
2021-01-08 18:00:50 +00:00
print(players[i].name.." ; Расстояние: "..players[i].distance.." ; Координаты: x = "..players[i].x.." y = "..players[i].y.." z = "..players[i].z)
2021-01-08 17:54:22 +00:00
print("")
2021-01-08 17:13:28 +00:00
end
end