CBaseEntity

From Valve Developer Community
Revision as of 09:03, 28 January 2014 by Fayti1703 (talk | contribs) (Uh, there is no such word as "thrice". It's called "three times".)
Jump to navigation Jump to search

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.