Classname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Added Template:Lang)
Line 1: Line 1:
{{lang|Classname}}
The '''classname''' of the entity is the type of object it is. "npc_zombie", "point_spotlight" and "func_tracktrain" are all classnames of different entities.
The '''classname''' of the entity is the type of object it is. "npc_zombie", "point_spotlight" and "func_tracktrain" are all classnames of different entities.



Revision as of 20:28, 7 May 2022

English (en)Translate (Translate)

The classname of the entity is the type of object it is. "npc_zombie", "point_spotlight" and "func_tracktrain" are all classnames of different entities.

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