ents.FindByName
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Ents.FindByName]Ents.FindByName [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | This example finds all the entities with the target-name "bill" |
|---|---|
| Used on | |
| Code | local bill = ents.FindByName("bill") |
| Output | N/A |