ents.GetByIndex

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Ents.GetByIndex]Ents.GetByIndex [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example finds the 96th entity object
Used onNewerShared.png
Code
local ninety_six  = ents.GetByIndex( 96 )
OutputN/A


Additional Notes

See Also

* ents.GetAll
* ents.FindByClass
* ents.FindByModel
* ents.FindByName
* ents.FindInBox
* ents.FindInSphere
* ents.FindInCone
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox