CBaseEntity: Difference between revisions
Jump to navigation
Jump to search
Beerdude26 (talk | contribs) m (Created page with "= Asserts = == Client == '''Problem:''' <source lang="cpp"> // Model could not be found Assert( !"Model could not be found, index is -1" );</source> '''Solution:''' *Check your m...") |
No edit summary |
||
Line 1: | Line 1: | ||
The base class for all entities.<br> | |||
To get the class name of an entity, use | |||
<source lang="cpp"> | |||
entity->edict()->GetClassName(); | |||
</source> | |||
= Asserts = | = Asserts = | ||
== Client == | == Client == |
Revision as of 22:19, 29 December 2011
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 thrice.
- Precache your model on both server and client.