Garry's Mod Wiki

Revision Difference

ents.GetMapCreatedEntity#563534

<function name="GetMapCreatedEntity" parent="ents" type="libraryfunc"> <description>Returns entity that has given <page>Entity:MapCreationID</page>.</description> <realm>Shared</realm> <args> <arg name="id" type="number">Entity's creation id</arg> </args> <rets> <ret name="" type="Entity">Found entity</ret>⤶ <ret name="" type="Entity|nil">Found entity, `nil` otherwise.</ret>⤶ </rets> </function>