This article's documentation is for Source 2. Click here for more information.

Entity (Source 2)

From Valve Developer Community
Revision as of 19:02, 8 October 2025 by CHILLMODEA (talk | contribs) (general cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Русский (ru)Translate (Translate)

An entity is an object within Source 2 Source 2 defined by having characteristics which differentiate it from the world.

Types of entities

Note.pngNote:These types are only from perspective of map editors and are based on FGD definitions or how map compilers deal with them [confirm]
Types Info
By Form
Point entity Created at a specific position point on the grid. Some require a model to be selected for them in order to function fully.
Mesh entity Mesh entities replace the Source Source brush entities. Since Source 2 Source 2 no longer uses a BSP brush structure, entities that need to be associated with geometry are now tied to Hammer meshes instead.
Path entity Only recently added. They can be created with the currently hidden Path Tool (Shift + P).
By Internality
Internal entity Processed by Source 2 resourcecompiler then either deleted or merged into another entity. They do not exist when the map is running, so they won't count to the entity limit.
Internal entities get special treatment by the map compile tools, and are removed from the final product, usually stored in a special chunk.
Non-Internal entity Not processed by Source 2 resourcecompiler and remains as a separate entity.
These are typically interactive objects or characters that the player can interact with or that affect gameplay.

Limitations

Main article:  Entity limit

For reasons of memory allocation, there is a limit to the number of entities Source 2 Source 2 can manage at once.

The combined size (in bytes) of a map's entity data should also be considered, even if the number of entities is within safe limits. Large amounts of entdata can take a noticeably long time to transmit from server to client, and may lead to crashes.

See also