Garry's Mod Wiki

Revision Difference

Entity:MapCreationID#551041

<function name="MapCreationID" parent="Entity" type="classfunc"> <description> Returns entity's map creation ID. Unlike <page>Entity:EntIndex</page> or <page>Entity:GetCreationID</page>, 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 <page>ents.GetMapCreatedEntity</page>. </description> <realm>Server</realm>⤶ <realm>Shared</realm>⤶ <rets> <ret name="" type="number">The map creation ID or -1 if the entity is not compiled into the map.</ret> </rets> </function>