CBaseEntity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Uh, there is no such word as "thrice". It's called "three times".) |
||
Line 12: | Line 12: | ||
Assert( !"Model could not be found, index is -1" );</source> | Assert( !"Model could not be found, index is -1" );</source> | ||
'''Solution:''' | '''Solution:''' | ||
*Check your model name | *Check your model name three times. | ||
*Precache your model on both server and client. | *Precache your model on both server and client. | ||
[[Category:Programming]] | [[Category:Programming]] |
Revision as of 09:03, 28 January 2014
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.