Spawning by Individual

EArkham

Necromancer
aa
Aug 14, 2009
1,625
2,773
Strange question, dunno how to do it or if it's possible.

Basically I'm looking for a way to set an individual player's spawn location based on a trigger. It'd work like this:

Say I have two spawn rooms, A & B, both for the same team.

Player #1 spawns in spawn room A. Player #2 spawns in spawn room A as well.

Player #2 goes to spawn room B, hits the trigger, then changes classes or dies afterwards. He respawns in spawn room B. Player #1 meanwhile hasn't touched that trigger, so he still respawns in spawn room A if he dies.

Is this possible, setting an individual player's spawn room? Or anything similar to this?

Kep
 

Zimius

L1: Registered
Oct 20, 2010
10
0
I'm interested in this as well, sounds as if you could interesting things with it :)
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
All spawns would be in a fake spawn room, basically a black box outside the map. Fill it with a trigger_teleport that uses a landmark to maintain relative position (so all players don't stack up). Have that teleport to your main spawn room. Add another one that uses a filter_activator_name set to something like Bplayer. Then on whatever your trigger is use !activator > AddOutput > targetname Bplayer to give the player's entity a name, which will make them use the other teleport. You'll also need the first teleport set to a filter that does NOT allow Bplayer. Also to "remove" the targetname and let them spawn in A again, just change it to something else, since you can't actually remove it.

The caveat with this is because you need to use a landmark for the teleport, all spawn rooms need to face the same direction, as the player's view angle will be preserved.
 

Zimius

L1: Registered
Oct 20, 2010
10
0
@A Boojum Snark
Thanks! Let's see if i can get it too work ;)

@LeSwordFish
Actually, I still had to puzzle for about an hour to get it to work for the things i want to do with it :)