CBaseEntity

From Valve Developer Community
Revision as of 10:27, 2 August 2023 by Nescius (talk | contribs) (-added the rest of class hierarchy)
Jump to navigation Jump to search
C++ Class hierarchy
CBaseEntity
IServerEntity
IServerUnknown
IHandleEntity
English (en)中文 (zh)Translate (Translate)

The base class for all entities.

Keyvalues

Inputs

Outputs

Programming related

To get the class name of an entity, use

entity->edict()->GetClassName();

Asserts

Client

Problem:

// Model could not be found
Assert( !"Model could not be found, index is -1" );

Solution:

  • Check your model name three times.
  • Precache your model on both server and client.