Teleporters: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (tidy & categorized (remember: this is more general than TF2))
Line 1: Line 1:
Teleporters can be created using standard Source entities.
Teleporters can be created using standard Source entities.
__TOC__


== Tutorial - One Way Teleporter ==
== One-way teleporter ==
<!-- I think this image does not properly exemplify the "brushwork" considered in this tutorial. Consider replacing it with a more explicit image? -->
[[image:Rustiznotch_teleportation.jpg|thumb|right|200px|An example teleportation room.]]
Start by creating a [[trigger_teleport]] as a [[brush_entity]] and placing it where you want the teleport ''entry'' zone to be. This will be the area in which a player must enter to be teleported (see picture on the right).
:* Set the 'Remote Destination' to an arbitrary name ('''destination1''', for example).
:* Change to the 'Flags' tab and check the 'Clients' flag.


* Create a [[trigger_teleport]] as a [[brush_entity]] and place it over where you want the teleport zone to be.
:* Set the 'Remote Destination' to an arbitrary name to be set later.
:* Change to the 'Flags' tab and check the 'Clients' box.
* Create an [[info_teleport_destination]] as an [[Entity_Creation|entity]] where you want the teleport zone to teleport to.
:* Set the 'Name' attribute to the arbitrary name we set in the previous step.
:[[image:Rustiznotch_teleportation.jpg|thumb|none|200px|An example teleportation room.]]


== Design Theory ==
Next, create an [[info_teleport_destination]] as an [[Entity_Creation|entity]] where you want the teleport ''exit'' zone. This will be the area where the player is teleported to.
:* Set the 'Name' attribute to the arbitrary name that was used in the previous step ('''destination1''').
{{clr}}


==See Also==
<!-- Suggestion to write a section on two-way teleporters, perhaps? (in a way that the player doesn't get infinitely teleported back and forth...like adding a "delay" before allowing to teleport back again) -->
[[Team_Fortress_2_Level_Creation|Back to Level Creation Page.]]
 
[[Category:Level Design Tutorials]]

Revision as of 14:42, 30 January 2008

Teleporters can be created using standard Source entities.

One-way teleporter

File:Rustiznotch teleportation.jpg
An example teleportation room.

Start by creating a trigger_teleport as a brush_entity and placing it where you want the teleport entry zone to be. This will be the area in which a player must enter to be teleported (see picture on the right).

  • Set the 'Remote Destination' to an arbitrary name (destination1, for example).
  • Change to the 'Flags' tab and check the 'Clients' flag.


Next, create an info_teleport_destination as an entity where you want the teleport exit zone. This will be the area where the player is teleported to.

  • Set the 'Name' attribute to the arbitrary name that was used in the previous step (destination1).