SuperSpaceEye / Some-Peripherals

MIT License
4 stars 4 forks source link

scanForPlayers(100) returning empty table #10

Closed 19PHOBOSS98 closed 10 months ago

19PHOBOSS98 commented 10 months ago

I can't get a reading even though I'm standing right on top of it. image 2023-12-03_09 41 42

local p = peripheral.find("sp_radar")
local targets = p.scanForPlayers(100)
print(textutils.serialize(targets))

the scan() function still works tho:

local targets_2 = p.scan(100)

for k,v in pairs(targets_2) do
    if(v.nickname=="PHO") then
        print(textutils.serialize(v.pos))
        return
    end
end

image

SuperSpaceEye commented 10 months ago

oh wait, i forgor :skull:

SuperSpaceEye commented 10 months ago

fixed