This article's documentation is for the "GoldSrc" engine. Click here for more information.
This article's documentation is for anything that uses the Source engine. Click here for more information.
This article's documentation is for Source 2. Click here for more information.

classname

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

classname is a keyvalue available in all GoldSrc GoldSrc, Source Source, and Source 2 Source 2 games. It indicates what the type of object it the entity is. npc_zombie, point_spotlight and func_tracktrain are all classnames of different entities.

Programmers can link a classname to C++ class with the LINK_ENTITY_TO_CLASS() macro.


Stub

This article or section is a stub. You can help by expanding it.