Revision Difference
ents.FindInSphere#551003
<function name="FindInSphere" parent="ents" type="libraryfunc">
<description>
Gets all entities within the specified sphere.
⤶
<note>Clientside entities will not be returned by this function.⤶
⤶
This function internally calls <page>ents.FindInBox</page> with some [radius checks](https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/sp/src/public/collisionutils.cpp#L256-L301).</note>
⤶
<note>Clientside entities will not be returned by this function.</note>⤶
<note>This function internally calls <page>ents.FindInBox</page> with some [radius checks](https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/sp/src/public/collisionutils.cpp#L256-L301).</note>
</description>
<realm>Shared</realm>
<args>
<arg name="origin" type="Vector">Center of the sphere.</arg>
<arg name="radius" type="number">Radius of the sphere.</arg>
</args>
<rets>
<ret name="" type="table">A table of all found <page>Entity</page>s. Has a limit of 1024 entities.</ret>
</rets>
</function>