CBaseEntity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added kio)
mNo edit summary
Line 1: Line 1:
<noinclude>{{otherlang2
<noinclude>{{Lang}}
|noborder=true
|ru=CBaseEntity:ru
}}__NOTOC__
[[Category:Programming]]
[[Category:Programming]]
</noinclude>
</noinclude>

Revision as of 05:30, 7 November 2022

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.