ents.FindInSphere

From GMod Wiki

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