Your First Entity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Nesciuse moved page Your First Entity/en to Your First Entity without leaving a redirect: Move en subpage to basepage)
 
(25 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[http://sweetestdrop.678host.com/content/furuno.html furuno] [http://dinatregre.profil.bz/free-female-ejaculation.html free female ejaculation movies] [http://utgang.hostinggratisuruguay.com/view/medical-question.html medical question] [http://lipkaya-loj.678host.com/stupid-cats.html stupid cats] [http://utgang.hostinggratisuruguay.com/view/celebritynude.html celebritynude] [http://tabethacaudill.profil.bz/small/korea.html korea] [http://shulend.hostinggratisvenezuela.com/articles/the-graduate/ the graduate] [http://recycledphrase3.orgfree.com/resources/san-luis/ san luis obispo realty] [http://tabethacaudill.profil.bz/small/long-sex-video.html long sex video] [http://sweetestdrop.678host.com/content/pressure-washer.html pressure washer parts] [http://bugubudji.myxhost.com/text/rate-my.html rate my teacher] [http://recycledphrase3.orgfree.com/resources/shoe-stores/ shoe stores] [http://bugubudji.myxhost.com/text/mysignup.html mysignup] [http://leannenowak.profil.bz/funny-t-shirt.html funny t shirt] [http://squealingpiglet.w8w.pl/content/jacuzzi/ jacuzzi] [http://reobhecc.hostinggratisusa.com/resources/nude-lesbian/ nude lesbian sex] [http://recycledphrase3.orgfree.com/resources/blonds-have/ blonds have more fun] [http://heyheyyouyou.w8w.pl/new/gay-manga/ gay manga] [http://recycledphrase3.orgfree.com/resources/natalie-imbruglia/ natalie imbruglia] [http://margenemerriam.profil.bz/topic/make-sex-kinkier.html make sex kinkier] [http://mimiwise.profil.bz/description/bouncing-jugs.htm bouncing jugs] [http://mariettebickers.profil.bz/industrial-mixing.html industrial mixing valve] [http://dinatregre.profil.bz/walmart-portrait.html walmart portrait studio] [http://mimiwise.profil.bz/description/wives-fucking.htm wives fucking blacks] [http://squealingpiglet.w8w.pl/content/dental-lasers/ dental lasers] [http://tabethacaudill.profil.bz/small/nude-wallpapers.html nude wallpapers] [http://squealingpiglet.w8w.pl/content/restroom-signs/ restroom signs] [http://squealingpiglet.w8w.pl/content/wonder-boys/ wonder boys film] [http://sweetestdrop.678host.com/content/young-sluts.html young sluts] [http://margenemerriam.profil.bz/topic/las-vegas-motivational.html las vegas motivational speaker] [http://beamcneese.profil.bz/goku-and-sailor.html goku and sailor moon] [http://laruereagan.profil.bz/washing-machine.html washing machine repair] [http://laruereagan.profil.bz/the-syntax-error.html the syntax error] [http://eldritchrainbow.678host.com/web/percocet/ percocet] [http://tabethacaudill.profil.bz/small/meteor-garden.html meteor garden] [http://margenemerriam.profil.bz/topic/positive-attitude.html positive attitude quotes] [http://recycledphrase3.orgfree.com/resources/bootybone/ bootybone] [http://www12.asphost4free.com/denisem/new/swing-set/ swing set plans] [http://shulend.hostinggratisvenezuela.com/articles/putting-on/ putting on the ritz] [http://leannenowak.profil.bz/ass-free-fucking.html ass free fucking] [http://www12.asphost4free.com/denisem/new/used-ellipticals/ used ellipticals in michigan] [http://www12.asphost4free.com/catlongtail/resources/starfire-naked/ starfire naked] [http://squealingpiglet.w8w.pl/content/phl/ phl] [http://lipkaya-loj.678host.com/winnie-the.html winnie the pooh] [http://heyheyyouyou.w8w.pl/new/zen-gardens/ zen gardens] [http://recycledphrase3.orgfree.com/resources/naked-in/ naked in the house] [http://recycledphrase3.orgfree.com/resources/discount-office/ discount office furniture cubicles] [http://recycledphrase3.orgfree.com/resources/alaska-mountaineering/ alaska mountaineering school] [http://tabethacaudill.profil.bz/small/funny-and-sexy.html funny and sexy] [http://tabethacaudill.profil.bz/small/original-wife.html original wife lovers] [http://virgietyus.profil.bz/sony-dvd-speler.htm sony dvd speler] [http://virgietyus.profil.bz/lingerie-party.htm lingerie party] [http://squealingpiglet.w8w.pl/content/hepa-filter/ hepa filter] [http://www12.asphost4free.com/zossia/collage-girls.html collage girls exposed] [http://www12.asphost4free.com/denisem/new/imac/ imac] [http://sweetestdrop.678host.com/content/sex-postures.html sex postures demonstration] [http://mariettebickers.profil.bz/aftermarket-parts.html aftermarket parts] [http://leannenowak.profil.bz/little-prince.html little prince boston opera] [http://www12.asphost4free.com/denisem/new/hentai-upskirt/ hentai upskirt] [http://squealingpiglet.w8w.pl/content/average-job/ average job salaries] [http://recycledphrase3.orgfree.com/resources/kid-incest/ kid incest] [http://www12.asphost4free.com/denisem/new/love-black/ love black people] [http://mariettebickers.profil.bz/salmon-river.html salmon river nyc] [http://squealingpiglet.w8w.pl/content/mechanical-sex/ mechanical sex] [http://eldritchrainbow.678host.com/web/ethnic/ ethnic] [http://leannenowak.profil.bz/activity-art.html activity art educational free lesson plan] [http://recycledphrase3.orgfree.com/resources/ken-park/ ken park] [http://beamcneese.profil.bz/nympho-nubile.html nympho nubile] [http://eldritchrainbow.678host.com/web/san-mateo/ san mateo real estate] [http://heyheyyouyou.w8w.pl/new/rhcp/ rhcp] [http://www12.asphost4free.com/catlongtail/resources/totally-free/ totally free sex pictures] [http://recycledphrase3.orgfree.com/resources/kiosk/ kiosk] [http://mimiwise.profil.bz/description/salt-and-pepper.htm salt and pepper] [http://recycledphrase3.orgfree.com/resources/alpha-lipoic/ alpha lipoic acid] [http://virgietyus.profil.bz/housewives-sex.htm housewives sex gallery] [http://beamcneese.profil.bz/toner-cartridges.html toner cartridges coupons] [http://dinatregre.profil.bz/thrifty-nickle.html thrifty nickle] [http://leannenowak.profil.bz/freeadultwebcams.html freeadultwebcams] [http://leannenowak.profil.bz/discount-computer.html discount computer hardware] [http://squealingpiglet.w8w.pl/content/citizenship/ citizenship] [http://sweetestdrop.678host.com/content/new-artists.html new artists] [http://mariettebickers.profil.bz/empire-poker.html empire poker] [http://janisdunham.profil.bz/blog/projector-lamps.html projector lamps] [http://www12.asphost4free.com/denisem/new/csx/ csx] [http://dinatregre.profil.bz/organic-chemistry.html organic chemistry] [http://skquek.2day.biz/description/extreme-sex.html extreme sex videos] [http://www12.asphost4free.com/catlongtail/resources/grease-lightning/ grease lightning] [http://mariettebickers.profil.bz/thumbnail-gallery.html thumbnail gallery of naked women] [http://mimiwise.profil.bz/description/bbs-young.htm bbs young] [http://bugubudji.myxhost.com/text/sexual-intercourse.html sexual intercourse technique] [http://skquek.2day.biz/description/rafian.html rafian] [http://reobhecc.hostinggratisusa.com/resources/nude-cartoon/ nude cartoon] [http://recycledphrase3.orgfree.com/resources/hunger/ hunger] [http://janisdunham.profil.bz/blog/italian-men.html italian men] [http://www12.asphost4free.com/denisem/new/huge-blowjob/ huge blowjob] [http://lipkaya-loj.678host.com/padme-naked.html padme naked] [http://janisdunham.profil.bz/blog/sex-fantasy-stories.html sex fantasy stories] [http://laruereagan.profil.bz/evanescence-my-immortal.html evanescence my immortal] [http://shulend.hostinggratisvenezuela.com/articles/sea-monkeys/ sea monkeys] [http://beamcneese.profil.bz/used-rv-prices.html used rv prices]
{{LanguageBar}}
[[Category:Programming]]
 
One of the easiest ways to begin your mod is by creating new entities inside the Source engine. Entities make up the objects in the world: NPCs, weapons, tin cans, or triggers; they’re the means by which we add life and interaction into the static geometry of the world.
 
'''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]] ==


Entities fall into three general categories: logical, model, and brush.
'''Do this first.'''


=[[Authoring_a_Logical_Entity|Logical Entity]]=
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.


These entities are the simplest of entities, because they have no position in the world, no visual component, and only exist to service input from the game map and make decisions based on the state of the world. Logical entities do not move and they do not have a model, they simply receive inputs and send outputs depending on their exact utility. An example would be a logic_counter entity that stores a value that can be added to or subtracted from. Other entities in the map can access the entity via inputs or get information from it via outputs. The entity’s position is irrelevant in this case, which is the major factor in declaring an entity logical.
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]]=
== [[Authoring a Model Entity|Model 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. NPCs are an example of this sort of entity.
[[File:My model entity.jpg|thumb|We will create this moving entity.]]


=[[Authoring_a_Brush_Entity|Brush 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.


These entities are constructed in Hammer out of <i>brushes</i> (See the Hammer Editor Documentation for more information). Brush entities are most often <i>triggers:</i> volumes in space that fire outputs when certain other entities (like the player) enter or exit them. These can also be moving entities, like doors and platforms.
In this tutorial we'll create a model entity that flies randomly around the world.


Using these three major types of entities, we can express almost all the flora and fauna of the Source universe.
== [[Authoring a Brush Entity|Brush Entity]] ==


To learn how to create these entities, see the [[Authoring_a_Logical_Entity|Logical Entity]], [[Authoring_a_Model_Entity|Model Entity]], and [[Authoring_a_Brush_Entity|Brush Entity]] documents.
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.


{{otherlang:en}} {{otherlang:en:de|Mein erstes Entity}}, {{otherlang:en:ru|Моя первая энтитя}}
[[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.