Garry's Mod Wiki

Entity:MapCreationID

Entity:MapCreationID

  number Entity:MapCreationID()

Description

Returns entity's map creation ID. Unlike Entity:EntIndex or Entity:GetCreationID, it will always be the same on same map, no matter how much you clean up or restart it.

To be used in conjunction with ents.GetMapCreatedEntity.

Returns

1 number
The map creation ID or -1 if the entity is not compiled into the map.

Special Pages


Wikis

?

Render Time: 53ms

DB GetPage 34
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 7