• How to use ents.FindInSphere?
    2 replies, posted
I have a basic script to attempt it but it doesnt seem to be working. [CODE] nullwavify = ents.FindInSphere( self:GetPos(), 500 ) for key, value in ipairs(nullwavify) do if v and v:IsValid() then v:Ignite() end end [/CODE] any help please?
v doesn't exist. Did you mean value? also, every entity in that list will already be valid.
sorry, my friend helped me figure how to do it. [CODE] for k,v in pairs(ents.FindInSphere(self:GetPos(), 200)) do if(v:GetClass() == "player") then v:Ignite(10,10) end end [/CODE] here's the code if anyone wants to use it. have a good day!
Sorry, you need to Log In to post a reply to this thread.