Game Development Community

Respawn Timer

by Chris "C2" Byars · in Torque Game Engine · 06/26/2006 (12:03 pm) · 2 replies

Anyone ever implemented a respawn countdown timer? Say, when a player dies, he automatically respawns in three seconds?

Edit: Wow that was easy.

In GameConnection::onDeath, add:
%this.schedule(3000, spawnPlayer);

#1
06/26/2006 (12:30 pm)
Lol C2 =) I never thought I would see you post such a question.
#2
06/26/2006 (1:02 pm)
Meh. I remember trying to do something weird in camera.cs a long time ago. Posting before thinking is never a good idea. :P