CBaseEntity: Difference between revisions
Jump to navigation
Jump to search
m (Uh, there is no such word as "thrice". It's called "three times".) |
m (Russification) |
||
Line 1: | Line 1: | ||
{{otherlang2 | |||
|noborder=true | |||
|ru=CBaseEntity:ru | |||
}}__NOTOC__ | |||
The base class for all entities.<br> | The base class for all entities.<br> | ||
To get the class name of an entity, use | To get the class name of an entity, use |
Revision as of 12:18, 7 May 2019
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.