ents.FindByName

From GMod Wiki

Jump to: navigation, search
Function
Syntax ents.FindByName( String name )
Where is this used?
Description:
Find all entities with a specified name.
Returns: Table : Entity
Part of Library: Ents
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Ents.FindByName]Ents.FindByName [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis example finds all the entities with the target-name "bill"
Used onNewerServer.png
Code
local bill = ents.FindByName("bill")
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox