ents.GetByIndex
From GMod Wiki
| Function | |
| Syntax | 
		ents.GetByIndex( Integer  index ) Where is this used?  | 
	
| Description: | |
| Retrieve a specified entity object by it's index. | |
| Returns: | Entity | 
| Part of Library: | Ents | 
| Realm: | 
		 | 
	
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Ents.GetByIndex]Ents.GetByIndex [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Examples
| Description | This example finds the 96th entity object | 
|---|---|
| Used on | |
| Code | local ninety_six = ents.GetByIndex( 96 )  | 
| Output | N/A | 
Additional Notes
- A simpler way to do this is G.Entity.
 - To get an entity's index use ent:EntIndex()
 - returns NULL, If the entity doesn't exist.