Template:Archived Page History/CBaseEntity/en: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Language subpage}} The base class for all entities. == Keyvalues == {{KV BaseEntity}} == Inputs == {{I BaseEntity}} == Outputs == {{O BaseEntity|l4d=1}} = Programming re...") |
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{Language subpage → {{langsp) |
||
| Line 1: | Line 1: | ||
{{ | {{langsp}} | ||
The base class for all entities. | The base class for all entities. | ||
Revision as of 01:00, 4 January 2024
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.