Jump to content

Query position & get all ents within a radius

Recommended Posts

most scripts use this and I seen it used in a loop so I'd imagine it can't be that slow.

local x, y, z = inst.Transform:GetWorldPosition()
local ents = TheSim:FindEntities(x, y, z, radius, {"TAGS"})


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...