CBaseEntity: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(-added the rest of class hierarchy) |
||
Line 1: | Line 1: | ||
{{CDA|CBaseEntity|IServerEntity|IServerUnknown|IHandleEntity}} | |||
<noinclude>{{lang|CBaseEntity}}[[Category:Programming]]</noinclude> | <noinclude>{{lang|CBaseEntity}}[[Category:Programming]]</noinclude> | ||
The base class for all entities. | The base class for all entities. |
Revision as of 10:27, 2 August 2023
![]() |
---|
CBaseEntity |
The base class for all entities.
Keyvalues
Inputs
Outputs
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.