Garry's Mod Wiki

Revision Difference

Entity:GetName#547167

<function name="GetName" parent="Entity" type="classfunc"> <description>Returns the mapping name of this entity.</description> <description>Returns the map/hammer targetname of this entity.</description> <realm>Server</realm> <rets> <ret name="" type="string">The name of the Entity</ret> </rets> </function> <example> <description>Prints the name of an entity in console.</description> <code> function PrintEntityName( ent ) print( ent:GetName() ) end </code> </example>