Is it possible to teleport yourself other than through trigger_teleport? Created 4 years ago2020-01-16 11:42:06 UTC by MrMystery MrMystery

Created 4 years ago2020-01-16 11:42:06 UTC by MrMystery MrMystery

Posted 4 years ago2020-01-16 11:42:06 UTC Post #343625
This is my first time using this kind of stuff. I made a button_target referencing an info_teleport_destination but it seems that nothing happens when I shoot and trigger (dev console confirmes it) the button entity. At first I thought it was not working because it was an external trigger firing the target, but actually it's not, then I'm assuming the only way you can teleport yourself is through trigger_teleport. Is that true?
MrMystery MrMysteryBanned
Posted 4 years ago2020-01-16 12:44:19 UTC Post #343626
A trigger_teleport is required to send the player to an info_teleport_destination, yes. If you want to send the player to a destination when they press/shoot a button, they need to be standing inside a trigger_teleport that the button then turns on. As the notes on the entity page you link said:
To make a trigger_teleport toggleable, use a multisource master. Trigger this master with a button or multi_manager or something to activate it. When the master is inactive, the teleporter will be as well.
monster_urby monster_urbyGoldsourcerer
Posted 4 years ago2020-01-16 13:39:39 UTC Post #343627
Yep. Unfortunately, if you want anything other than a static zone what you touch and you teleport, you've gotta use a master. If you wanted a teleport to happen on button-press, you'd have the trigger_teleport over the area, with a multisource as a master. Button targets the multisource.
Jessie JessieTrans Rights <3
Posted 4 years ago2020-01-16 17:20:05 UTC Post #343629
Ok, I figured out how it works with a multisource master, however, I could not stop it from teleporting me in an infinite loop being within the trigger_teleport zone using the button_target entity. The problem here seems that this entity doesn't have a wait (delay before it resets) property as func_button does to stop the trigger cycle. So, how do I proceed now?

I actually want something a little bit more complex. Here's a sketch of what I'm planning to do so anyone could help me with it :P
User posted image
As you can see, I have a main room (lobby) with multiple choices for teleportation (button_target), where, when shoot, they could change the main trigger_teleport target to teleport the player into the respective room.

How can I manage to do that? I'm taking a look at the trigger_changetarget but still have no idea how it works.
MrMystery MrMysteryBanned
Posted 4 years ago2020-01-17 13:08:04 UTC Post #343632
Maybe this will help, here's an example map I put together:
http://www.themightyatom.nl/stuff/mrmistery_teleport_test.jmf (created with JACK).

You'll start in a room with 3 button_targets labeled A, B and C. Shooting these will teleport you to corresponding rooms also labeled A, B and C, like you wanted with the only difference that I have 3 rooms instead of 4. Inside each room is a trigger_teleport to send you back to the main room (the lobby), marked by the yellow-black striped texture. Back in the main room, you can continue to shoot the buttons to teleport you to the corresponding rooms.
The Mad Carrot The Mad CarrotMad Carrot
Posted 4 years ago2020-01-17 19:28:12 UTC Post #343633
Thanks, The Mad Carrot ;)
MrMystery MrMysteryBanned
You must be logged in to post a response.