basically I'm creating a multi dimensional type map like revelations and I just wanted to know how would I got about making a door way teleporter with a nice teleporter effect in the doorway like in revelations... I thinkit would use a trigger radius and when touched it teleports you to the receiving end but I don't know nything at all tbh and I really need some help... a detailed tut and or guide is helpful thanks people
EDIT: I also need to have multiple in the map so nacht is the main room in the middle so I need to have four doorway Teleporters in nacht leading to different areas and when I come back through one area ( lets say ( buried ) ) for example and I walk through the ( buried ) doorway teleporter it takes me back to nacht
create a trigger_multiple and give it a targetname e.g. "tp_first_room" add a script_origin and give it a targetname e.g. "nacht_spawn"
add this under maps\_zombiemode::main(); in your mapname.gsc
Code Snippet
Plaintext
thread rev_teleporter();
add this function at the button of the file
Code Snippet
Plaintext
rev_teleporter() { tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both }
To add a new tp to the script you only have to add the new trigger and the new script_origin into the first function like this
Code Snippet
Plaintext
rev_teleporter() { tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both
create a trigger_multiple and give it a targetname e.g. "tp_first_room" add a script_origin and give it a targetname e.g. "nacht_spawn"
add this under maps\_zombiemode::main(); in your mapname.gsc
Code Snippet
Plaintext
thread rev_teleporter();
add this function at the button of the file
Code Snippet
Plaintext
rev_teleporter() { tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both }
To add a new tp to the script you only have to add the new trigger and the new script_origin into the first function like this
Code Snippet
Plaintext
rev_teleporter() { tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both
create a trigger_multiple and give it a targetname e.g. "tp_first_room" add a script_origin and give it a targetname e.g. "nacht_spawn"
add this under maps\_zombiemode::main(); in your mapname.gsc
Code Snippet
Plaintext
thread rev_teleporter();
add this function at the button of the file
Code Snippet
Plaintext
rev_teleporter() { tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both }
To add a new tp to the script you only have to add the new trigger and the new script_origin into the first function like this
Code Snippet
Plaintext
rev_teleporter() { tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both
I think it's not too hard to understand how you add new teleporters. If you have more questions just ask.
also I done exactly what u said and when I step in the trigger multiple on my map it doesn't teleport me at all it does nothing are u sure I would use a trigger multiple
also I done exactly what u said and when I step in the trigger multiple on my map it doesn't teleport me at all it does nothing are u sure I would use a trigger multiple
I'm pretty sure. I haven't tested the script because i'm not at home. You can try this out and see how it works: And CHANGE your script_origin to a script_struct
I'm pretty sure. I haven't tested the script because i'm not at home. You can try this out and see how it works: And CHANGE your script_origin to a script_struct
do I replace this : rev_teleporter() { tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both }
With This : rev_teleporter() { tp_trigger_spawn_room = getEnt ( "tp_first_room" , "targetname" ); //Define the Teleporter-Trigger spawn = getstruct ( "nacht_spawn" , "targetname" ); tp _trigger_spawn_room waittill ("trigger", who); who setOrigin (spawn.origin); }
do I replace this : rev_teleporter() { tp_trigger_spawn_room = getEnt ("tp_first_room","targetname"); //Define the Teleporter-Trigger nacht_spawn = getEnt ("nacht_spawn","targetname"); //Define the Spawnpoint thread teleporter_on(tp_trigger_spawn_room,nacht_spawn); //Thread the tp function with both }
With This : rev_teleporter() { tp_trigger_spawn_room = getEnt ( "tp_first_room" , "targetname" ); //Define the Teleporter-Trigger spawn = getstruct ( "nacht_spawn" , "targetname" ); tp _trigger_spawn_room waittill ("trigger", who); who setOrigin (spawn.origin); }
Yes and you can uncomment the telepoter_on () function for now untill it works.
I'm pretty sure. I haven't tested the script because i'm not at home. You can try this out and see how it works: And CHANGE your script_origin to a script_struct
on this line : tp _trigger_spawn_room waittill ("trigger", who); I get a bad syntax error so could u look at this please and also if anything needs changing I suppose it will affect this line : who setOrigin (spawn.origin); Double Post Merge: December 08, 2016, 09:14:11 pm
Yes and you can uncomment the telepoter_on () function for now untill it works.
why do I need the teleporter on function as I want the portals to be available as soon as the map starts Double Post Merge: December 08, 2016, 09:17:58 pm