Targetname

From Valve Developer Community
Revision as of 12:46, 27 July 2005 by TomEdwards (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

An entity's name. Referred to simply as Name with SmartEdit enabled.

Caveats

  • A targetname is not required for an entity to exist, but in almost all cases (see below) must be present for an entity to play a part in the I/O System.
  • A targetname makes the engine pay particular attention to that entity, lowering performance. Do not name entites unnecessarily.
  • Targetnames do not need to be unique. As many entities as the mapper wants can share the same name, and they will all respond to the same inputs. Duplicated targetnames are displayed in bold font.
  • Targetnames are also useful for categorising entities (area1_name, area2_name, etc.).

Keywords

Sometimes, an entity without a targetname or with an unknown targetname will need to be targeted by an I/O event. In these situations there are special keyword targetnames that can be used in place of existing ones:

  • !player - the player
  • !activator - the entity that activated the output.
  • List incomplete

These keywords cannot be used as an entity's specified targetname.