Your First Entity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Nesciuse moved page Your First Entity/en to Your First Entity without leaving a redirect: Move en subpage to basepage)
 
(83 intermediate revisions by 45 users not shown)
Line 1: Line 1:
'''Hack powered by ECC'''
{{LanguageBar}}
'''more hacks @ http://www.overclock.ch'''


'''CHEATS & MORE => http://www.overclock.ch'''
 
'''Everything in Source is an [[entity]].''' Even the world and the player. Despite this, they all trace back to only a handful of categories: the most common by far are "logical", "model" and "brush".
 
This series of articles will guide you through the process of creating three new entities. Start with a logical entity, as it is assumed knowledge for the others.
 
== [[Authoring a Logical Entity|Logical Entity]] ==
 
'''Do this first.'''
 
Logical entities are the simplest of entities because they have no position in the world, no visual component, and only exist to service [[input]] from other entities.
 
In this tutorial we'll create a logical entity that performs the simple task of storing a value and incrementing that value every time it receives an appropriate input. Once the counter has reached a value we'll define, the entity will fire an [[output]].
 
== [[Authoring a Model Entity|Model Entity]] ==
 
[[File:My model entity.jpg|thumb|We will create this moving entity.]]
 
[[Model]] entities are what we would most typically think of entities as being: they have a visual component, they can move around the map and often they are interactive.
 
In this tutorial we'll create a model entity that flies randomly around the world.
 
== [[Authoring a Brush Entity|Brush Entity]] ==
 
These entities are constructed in Hammer from [[brush]]es. They are often [[trigger]]s: volumes in space that fire outputs when a set of conditions are met within them. They can also be moving parts of the world like doors and platforms.
 
In this tutorial we'll create a brush entity that moves when touched.
 
[[Category:Programming]]
[[Category:Tutorials]]

Latest revision as of 12:38, 12 July 2024

English (en)Deutsch (de)Français (fr)Português do Brasil (pt-br)Русский (ru)中文 (zh)Translate (Translate)


Everything in Source is an entity. Even the world and the player. Despite this, they all trace back to only a handful of categories: the most common by far are "logical", "model" and "brush".

This series of articles will guide you through the process of creating three new entities. Start with a logical entity, as it is assumed knowledge for the others.

Logical Entity

Do this first.

Logical entities are the simplest of entities because they have no position in the world, no visual component, and only exist to service input from other entities.

In this tutorial we'll create a logical entity that performs the simple task of storing a value and incrementing that value every time it receives an appropriate input. Once the counter has reached a value we'll define, the entity will fire an output.

Model Entity

We will create this moving entity.

Model entities are what we would most typically think of entities as being: they have a visual component, they can move around the map and often they are interactive.

In this tutorial we'll create a model entity that flies randomly around the world.

Brush Entity

These entities are constructed in Hammer from brushes. They are often triggers: volumes in space that fire outputs when a set of conditions are met within them. They can also be moving parts of the world like doors and platforms.

In this tutorial we'll create a brush entity that moves when touched.