Garry's Mod Wiki

Garry's Mod Wiki

  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. See also Entity:CreatedByMap.

Returns

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

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 four times a day. Edits and history are not available.

Last Parsed: Loading...