Garry's Mod Wiki

Garry's Mod Wiki

  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.

-1 for clientside-only or 0 for serverside-only entities.

Example

Demonstrates the use of this function.

Output: 1

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...