Teleports

Tutorial collection, comprehensive listings on main site.

Teleports

Postby Tutorial on Mon Mar 07, 2005 10:19 pm

category
General Half-Life 2/Entities

description
Take a player from A to B instantly.

keywords
teleport, teleports, teleportation, trigger_teleport.

I made this tutorial after a request in the forums was made for it. It will show you how to teleport from one location to another.

Start off with the room your player will teleport from. Create a brush textured with nodraw and place it where the player has to walk to be teleported. As soon as a player touches any sides of this brush they will be teleported. That is after the entity work of course. As you can see I have a very basic setup.

Image

Select the brush and press ctrl+t then choose trigger_teleport from the list. The only setting needed to be changed is Remote Destination which you give a name. I have chosen tele and will be reffering to this name throughout the tutorial.

Next have your teleport location. Select your entity tool and place it where you want players to be teleported to. While the entity is selected press alt+enter to bring up the properties box. From the list choose info_teleport_destination and Name it tele. It will look something similar to this.

Image

Thats it! Compile and test.

Related
Example Map

Cr4ig
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby -Grim Reaper- on Fri Aug 19, 2005 11:24 pm

Will i be able to walk back and forth through the portals..or is it just a 1 way teleport?
-Grim Reaper-
Dumpling
Dumpling
 
Joined: Wed Jun 08, 2005 3:48 pm
Location: Estonia

Postby strait-2-the-point on Sat Aug 20, 2005 12:03 am

grim say if this is the teleport and destination:

teleport-------------------destination

its one way, to make it both ways you will have to make it like so:

teleport+destination------------------teleport+destination
User avatar
strait-2-the-point
1337 p0st3r
1337 p0st3r
 
Joined: Sun Jul 31, 2005 6:09 pm
Location: a place called London

Postby TheMiede on Sun Apr 09, 2006 7:49 pm

Is it possible to place multiple destinations and then have an entity randomly select one of those destinations for the person.
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Postby marnamai on Sun Apr 09, 2006 7:53 pm

yes
User avatar
marnamai
Veteran
Veteran
 
Joined: Thu Nov 10, 2005 12:17 pm
Location: Belgium

Postby TheMiede on Sun Apr 09, 2006 9:49 pm

how
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Postby marnamai on Sun Apr 09, 2006 10:02 pm

TAKEN FROM EDITLIFE
http://www.editlife.net/tutorial.php?id=32

ENTITIES USED:

trigger_teleport
"Name" - tele
"Remote Destination" - targ1
output OnStartTouch target randomizer input PickRandom

ai_changetarget (it makes no difference where you place it)
"Name" - to1
"Target Entity" - tele
"New Target" - targ1

ai_changetarget (it makes no difference where you place it)
"Name" - to2
"Target Entity" - tele
"New Target" - targ2

ai_changetarget (it makes no difference where you place it)
"Name" - to3
"Target Entity" - tele
"New Target" - targ3

info_target
"Name" - targ1

info_target
"Name" - targ2

info_target
"Name" - targ3

logic_case (it makes no difference where you place it)
"Name" - randomizer
"Case 01" - 1
"Case 02" - 2
"Case 03" - 3
output OnCase01 target to1 input Activate
output OnCase02 target to2 input Activate
output OnCase03 target to3 input Activate
User avatar
marnamai
Veteran
Veteran
 
Joined: Thu Nov 10, 2005 12:17 pm
Location: Belgium

Postby neoviper on Thu Jan 04, 2007 8:45 pm

any way to have it make the crater when the canister hits, or do you have to premake it.
neoviper
Member
Member
 
Joined: Thu Jan 04, 2007 5:58 am

Postby samthomson on Sat Dec 01, 2007 2:34 am

I followed the tutorial but the teleporter doesnt show up when the map is compiled (it doesnt show any sign of functioning). Is there anything that might stop it working, ive had several attempts at this.
samthomson
Member
Member
 
Joined: Mon Jan 23, 2006 3:20 pm

Re: Teleports

Postby TacDrol on Mon Feb 25, 2008 9:32 pm

samthomson wrote:I followed the tutorial but the teleporter doesnt show up when the map is compiled (it doesnt show any sign of functioning). Is there anything that might stop it working, ive had several attempts at this.


Same here... I did everything like it says, I even triple checked with the example and it didn't work. When I inserted the example into my map, though, it worked perfectly fine. The teleporter even teleported to my own object.
TacDrol
Dumpling
Dumpling
 
Joined: Mon Feb 25, 2008 8:08 am

Re: Teleports

Postby Dradious on Mon Mar 10, 2008 5:26 pm

The reason that your teleports don't work, is because you don't have the "clients" flag checked, I had this same problem for my first few teleport maps and it drove me INSANE!!!
User avatar
Dradious
Dumpling
Dumpling
 
Joined: Wed Mar 05, 2008 12:34 am

Re: Teleports

Postby pizzaroo on Sun Aug 23, 2009 9:59 pm

easy! i got one so it buts you in a compacter! lol
Sorry if it is hard to read!
pizzaroo
Member
Member
 
Joined: Fri Aug 14, 2009 6:45 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users