Template:en

From Valve Developer Community
< Template:Archived Page History
Revision as of 22:43, 21 December 2023 by NOUG4AT (talk | contribs) (Created page with "{{Language subpage}} The base class for all entities. == Keyvalues == {{KV BaseEntity}} == Inputs == {{I BaseEntity}} == Outputs == {{O BaseEntity|l4d=1}} = Programming re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Flag-white.pngEnglish (en)

The base class for all entities.

Keyvalues

Inputs

Outputs

Programming related

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.