Classname: Difference between revisions
Jump to navigation
Jump to search

No edit summary |
SirYodaJedi (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{LanguageBar}} | {{LanguageBar}} | ||
{{this is a|[[keyvalue]]|name=classname|engine=GoldSrc|engine1=Source|engine2=Source 2}} It indicates what the type of object it the entity is. {{ent|npc_zombie}}, {{ent|point_spotlight}} and {{ent|func_tracktrain}} are all classnames of different entities. | |||
Programmers can link a classname to C++ class with the <code>[[LINK_ENTITY_TO_CLASS()]]</code> macro. | Programmers can link a classname to C++ class with the <code>[[LINK_ENTITY_TO_CLASS()]]</code> macro. |
Latest revision as of 08:00, 1 May 2025


classname
is a keyvalue available in all GoldSrc,
Source, and
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.