ents.FindInSphere

From GMod Wiki

Revision as of 01:34, 6 February 2011 by Zack (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax ents.FindInSphere( Vector center, Number radius )
Where is this used?
Description:
Find all entities within a sphere of a specified radius
Returns: Table : Entity
Part of Library: Ents
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Ents.FindInSphere]Ents.FindInSphere [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis example finds all the entities whose distance from the origin is less than 128 units from map coordinate 0,0,0
Used onNewerShared.png
Code
local orgin_ents = ents.FindInSphere(Vector(0,0,0),128)
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox