Garry's Mod Wiki

Revision Difference

Entity:GetName#527009

<function name="GetName" parent="Entity" type="classfunc"> <description>Returns the mapping name 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>