force a player to respawn with script


(Ozzie) #1

Is it possible to force a player to respawn via a script without killing the player?

When a player reaches the objective on the map, I want to trigger a script that will mark the objective as complete, then send the player to the spawn point. In the idea that I’m working on, it would be unrealistic to have the player work their way back the way they came. I also would prefer not to ‘punish’ the player by recording a death, when the complete the objective.

TIA…


(G0-Gerbil) #2

In the old days I think you’d have been able to teleport him back, but I think RivrStyx said that don’t work any more in ET (he had a teleport in Ressurrection). I think he did mention he’d got a work-around though, so maybe with a bit of prodding he’ll see this thread and comment :smiley:


(Thej) #3

is ti also possible to have a forward respawn like in oasis, but instead of having to blow something up, u would just have to hold the spawnpoint for like 2 mins, to capture the spawnpoint.


(Ozzie) #4

Thej,

I’m not sure how it works, but I think this is accomplished in the map King of The Hill. When after the clock hit a certian point you have to hold the flag for 2 mins I think. Sorry, I haven’t played that map in a while.


(G0-Gerbil) #5

You’d need a timer that is triggered whenever the flag is captured.
When you capture the flag, mark an accum that says ‘X team has it’. Then if the timer ever fires off (assuming you’ve set it’s interval to however long you wish to capture it for), then check your accum and the corresponding team fgets the flag permenantly (activate spawns, kill flag, kill timer etc).

Can’t be sure, but I think timers trigger immediately onces activated, then after the timelimt you specify, so don’t be suprised if you have to capture this extra immediate event and ignore it through scripting.