Garry's Mod Wiki

Entity:EntIndex

number Entity:EntIndex()

Description

Gets the unique entity index of an entity.

Entity indices are marked as unused after deletion, and can be reused by newly-created entities

Returns

1 number
The index of the entity.<br /> <br />-1 for clientside-only or serverside-only entities.

Example

Demonstrates the use of this function.

Output: 1

Page Links


Special Pages


Wikis

?

Render Time: 32ms

Session 0
DB GetPage 3
Generate Html 6
SaveChanges 9
Render Body 0
Render Sidebar 12