CBaseEntity

From Valve Developer Community
Revision as of 12:18, 7 May 2019 by Loc0 (talk | contribs) (Russification)
Jump to navigation Jump to search

Template:Otherlang2

The base class for all entities.
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.