Garry's Mod Wiki

Revision Difference

Entity:GetCreationID#551033

<function name="GetCreationID" parent="Entity" type="classfunc"> <description>Returns entity's creation ID. Unlike <page>Entity:EntIndex</page> or <page>Entity:MapCreationID</page>, it will always increase and old values won't be reused.</description>⤶ <description>Returns entity's creation ID. Unlike <page>Entity:EntIndex</page> or <page>Entity:MapCreationID</page>.⤶ It will increase up until value of `10 000 000`, at which point it will reset back to `0`.</description>⤶ <realm>Server</realm> <rets> <ret name="" type="number">The creation ID</ret> </rets> </function>