Classname: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 
		
	
| Thunder4ik (talk | contribs) m (→top: Unicodifying, added stub tag) | SirYodaJedi (talk | contribs)  No edit summary | ||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{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 C++ class  | Programmers can link a classname to C++ class with the <code>[[LINK_ENTITY_TO_CLASS()]]</code> macro. | ||
| [[Category:Glossary]] | [[Category:Glossary]] | ||
Latest revision as of 08:00, 1 May 2025

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


























