Latest revision |
Your text |
Line 2: |
Line 2: |
|
| |
|
| The static geometry of a map is also an entity, known as "worldspawn". | | The static geometry of a map is also an entity, known as "worldspawn". |
|
| |
| This article describes selected entities.
| |
|
| |
|
| ==Entity types== | | ==Entity types== |
Line 22: |
Line 20: |
| * ref_tag (location marker for scripts) | | * ref_tag (location marker for scripts) |
| * target (perform various functions when activated) | | * target (perform various functions when activated) |
| * team (entities for team multiplayer maps, eg. player spawnpoints and CTF flags)
| |
| * terrain | | * terrain |
| * trigger | | * trigger |
Line 29: |
Line 26: |
|
| |
|
| == func entities == | | == func entities == |
| func entities are composed out of map geometry (brushes and/or curve patches). They can, however, be made from a nodraw brush and a 3D model assigned via the "model2" key. | | func entities are composed out of map geometry (brushes and/or curve patches). |
|
| |
|
| ==== func_breakable ==== | | ==== func_breakable ==== |
Line 35: |
Line 32: |
|
| |
|
| ==== func_door ==== | | ==== func_door ==== |
| A simple door. Can be opened by proximity (default), the "use" button, or [[Force Push]]. | | A simple door. |
|
| |
|
| ==== func_rotating ==== | | ==== func_rotating ==== |
Line 105: |
Line 102: |
| ==== NPC_vehicle ==== | | ==== NPC_vehicle ==== |
| A [[vehicle]]. | | A [[vehicle]]. |
|
| |
| == point_combat ==
| |
| NPCs equipped with guns move to these locations to fight.
| |
|
| |
| == rail entities ==
| |
| These are special entities used to create a moving train / tram illusion, as in [[t1_rail]].
| |
|
| |
| It is in fact the scenery (buildings) which are moving entities, while the "train" is actually stationary (worldspawn).
| |
|
| |
| == target entities ==
| |
| ==== target_level_change ====
| |
| Ends the current level.
| |
|
| |
| ==== target_scriptrunner ====
| |
| Runs an [[Icarus]] script.
| |
|
| |
| ==== target_speaker ====
| |
| Plays a sound. Can be assigned a [[SoundSet]] or a [[.wav]] file.
| |
|
| |
| == trigger entities ==
| |
| Triggers should be made entirely out of a brush (or brushes) textured with the trigger shader.
| |
|
| |
| ==== trigger_hurt====
| |
| Does damage to players and/or NPCs. Can be set to an electrocution effect, or falling (pit) effect.
| |
|
| |
| ==== trigger_multiple ====
| |
| A standard trigger, which can be used to make switches (if "facing" and "use button" spawnflags are set).
| |
|
| |
| ==== trigger_once ====
| |
| Like trigger multiple, but can only be triggered once.
| |
|
| |
| ==== trigger_push ====
| |
| Pushes players and/or NPCs in a certain direction. Can be used to create wind tunnels and conveyor belts.
| |
|
| |
| ==== trigger_visible ====
| |
| A trigger which is triggered by being looked at. Can be set to [[force sight]] only.
| |
|
| |
| == waypoint entities ==
| |
| ==== waypoint ====
| |
| These are used by NPCs (like Stormtroopers) for navigation. A map requires a network of connected waypoints; otherwise, NPCs will not be able to move around. Jedi and other lightsaber wielding NPCs do not require waypoints.
| |
|
| |
| ==== waypoint_navgoal ====
| |
| An NPC can be moved to this location with a script.
| |
|
| |
|
| ==See also== | | ==See also== |