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