Teleporters: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Removed obvious bit about invisible texture)
Line 28: Line 28:
:*In the [[filter_activator_tfteam]] properties, name your activator, and set the 'Team' to RED/BLU based on which team you want the teleporter to be used by.
:*In the [[filter_activator_tfteam]] properties, name your activator, and set the 'Team' to RED/BLU based on which team you want the teleporter to be used by.
:*Open your [[trigger_teleport]] properties, and set 'Filter Name' to the name of the corresponding [[filter_activator_tfteam]].
:*Open your [[trigger_teleport]] properties, and set 'Filter Name' to the name of the corresponding [[filter_activator_tfteam]].
<br>
{{note|You can also use other filter entities that apply to objects being teleported ([[filter_activator_mass_greater]], for example).}}
==External Links==
==External Links==
*[http://sdknuts.net/tutorials/wiseTele.asp Teleporting (sdknuts)]
*[http://sdknuts.net/tutorials/wiseTele.asp Teleporting (sdknuts)]

Revision as of 10:13, 11 July 2011

Template:Otherlang2

Stub

This article or section is a stub. You can help by expanding it.

Teleporters can be created using standard Source entities.

One-way teleporter

File:Rustiznotch teleportation.jpg
An example teleportation room.

Start by creating a brush and texturing it with tools/toolstrigger. Now select the brush and click toEntity (or Ctrl+T), select trigger_teleport and click Apply. 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 appropriate name (teleport_destination_1, for example).
  • Change to the 'Flags' tab and check the 'Clients' flag to allow players to teleport.
Note.pngNote:(For a full list of Keyvalues and Flags see the Trigger teleport entity).

Next, create an info_teleport_destination from the entity list where you want the teleport exit to be. This will be the point where the player is teleported to.

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


Now in game, when you touch the trigger_teleport, you come out at the info_teleport_destination.

Making Teleporters Team-Specific

If you have teleporters in your map that are out in the open, and you want to make them team-specific, add 1 filter_activator_tfteam per teleporter that you are making team-specific.


Note.pngNote:You can also use other filter entities that apply to objects being teleported (filter_activator_mass_greater, for example).

External Links