5 second respawn in the BGE?

How can I make it so when a player dies, it respawns after waiting 5 seconds? I’ve made a Multiplayer game, and got everything working, except for respawn system. Help would be greatly appreciated. :slight_smile:

Moved from “General Forums > Blender and CG Discussions” to “Game Engine > Game Engine Support and Discussion”

The basic idea: wait five seconds, then add another player.

We are going to need a lot more details:

  • How are you doing the multiplayer?
  • What are your players?
  • .

1 - I am using the Multiplayer add-on v1.65 by Angus Hollands.
2 - I have 2 cubes called Player 1, and other.

you can add a property timer…that is always set to zero as long as the player health is above 0. if the health is below 0 the timer would automatically start running(it would always be running, but continually reset to 0 while player health was > 0)

elif controller[‘timer’] > 5:
spawn_player()#teleport the player to a predefined pos with full health