Entity.GetCreationID
From GMod Wiki
Revision as of 23:55, 11 January 2011 by Grea$eMonkey (Talk | contribs)
Function | |
Syntax | Entity:GetCreationID( ) |
Description: | |
Returns the creation ID of the entity. | |
Returns: | Integer Creation ID |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetCreationID]Entity.GetCreationID [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The CreationID is not the same as the Entity.EntIndex function.
- When an entity gets deleted, it's EntIndex will become available again for whatever entity is next created, however, the CreationID increments upwards and will always be unique.