Garry's Mod Wiki

Garry's Mod Wiki

  string Entity:GetName()

Description

Returns the map/hammer targetname of this entity.

Returns

1 string
The name of the Entity

Example

Prints the name of an entity in console.

function PrintEntityName( ent ) print( ent:GetName() ) end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...