Template:Archived Page History/CBaseEntity/en: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Language subpage}} The base class for all entities. == Keyvalues == {{KV BaseEntity}} == Inputs == {{I BaseEntity}} == Outputs == {{O BaseEntity|l4d=1}} = Programming re...")
 
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Language subpage}}
{{APH|CBaseEntity}}
The base class for all entities.
 
== Keyvalues ==
{{KV BaseEntity}}
 
== Inputs ==
{{I BaseEntity}}
 
== Outputs ==
{{O BaseEntity|l4d=1}}
 
= Programming related =
To get the class name of an entity, use
<source lang="cpp">
entity->edict()->GetClassName();
</source>
 
== Asserts ==
=== Client ===
'''Problem:'''
<source lang="cpp">
// Model could not be found
Assert( !"Model could not be found, index is -1" );</source>
'''Solution:'''
*Check your model name three times.
*Precache your model on both server and client.

Latest revision as of 13:24, 18 August 2024

Note.pngNote:Archived rest of page history of page CBaseEntity
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.