Garry's Mod Wiki

Garry's Mod Wiki

  table ents.FindInSphere( Vector origin, number radius )

Description

Gets all entities within the specified sphere.

Serverside, this uses a Spatial Partition internally to avoid looping through all entities, so it is more efficient than using ents.GetAll for this purpose.

Clientside, this function internally calls util.IsBoxIntersectingSphere

Arguments

1 Vector origin
Center of the sphere.
2 number radius
Radius of the sphere.

Returns

1 table
A table of all found Entitys.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...