CBaseEntity: Difference between revisions
Jump to navigation
Jump to search
m (-lang) |
mNo edit summary |
||
Line 12: | Line 12: | ||
== Outputs == | == Outputs == | ||
{{O BaseEntity}} | {{O BaseEntity|l4d=1}} | ||
= Programming related = | = Programming related = |
Revision as of 11:05, 7 November 2022
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.