Game Development Community

Respawning

by Robert Fritzen · in Torque Game Engine Advanced · 03/26/2011 (6:22 pm) · 3 replies

Where is the respawn (press fire to respawn, ect.) code located? I cannot seem to find it, and I may need to make some edits to this bit of code for my project.

#1
03/26/2011 (7:51 pm)
I've got a feeling it might have something to do with the corpse camera mode. That or in game/gamecore.cs for what to do when there is no player.
#2
03/26/2011 (8:21 pm)
Take a look in scripts/server/camera.cs at function Observer::onTrigger(). In the case of "corpse" observer mode when the trigger is pressed the player/client is handed off to preparePlayer() to begin the respawn and equipping process as normal. preparePlayer() can have multiple overrides depending on gameType.
#3
03/27/2011 (8:50 am)
Thanks, that's exactly what I was looking for.