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...")
 
m (→‎top: clean up, replaced: {{Language subpage → {{langsp)
Line 1: Line 1:
{{Language subpage}}
{{langsp}}
The base class for all entities.
The base class for all entities.



Revision as of 01:00, 4 January 2024

Flag-white.pngEnglish (en)

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.