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.
About the author
Illinois Grad. Retired T3D Developer / Pack Dev.
#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.
Associate Steve Acaster
[YorkshireRifles.com]