Hi does anyone know how I can get targets (player dynamic constructs) names and distances sent from a radar to text listed on a screen on a static construct ? ? I was trying some code that someone helped with but getting script errors
for example
on screen:
SCI Hauler 537.27meters
freelancer alpha 1.02km
is this even possible I am using a command chair as I cannot get the programming board to link with the radar pvp atmospheric size M
if you can help with the code that would be super appreciated
thanks
this is the code but I am not getting the names and distances on The screen display.
local data = radar_1.getData():gmatch('"constructId":"[0-9]*","distance":[%d%.]*')
for v in data do
local id,distance = v:match('"constructId":"([0-9]*)","distance":([%d%.]*)')
system.print(id .. " " .. distance)
end
```