Game Development Community

Leave Dead Body and dont delete

by Tiffany Cohen · in Torque Game Engine · 06/30/2006 (8:16 am) · 4 replies

Is there a way to leave a dead body in the game without fading away and respawn in a new place. Thanks:)

-Tiffany

#1
06/30/2006 (8:21 am)
Why are you posting with two accounts?

- You really should start looking into the scripts that come with TGE.

Take a look in player.cs. onDeath(). There's a call to delete there.
#2
06/30/2006 (8:27 am)
Thanks for the help. I got it.

in player.cs.
i just comment out
// %obj.schedule($CorpseTimeoutValue - 10000, "startFade", 10000, 0, true);
// %obj.schedule($CorpseTimeoutValue, "delete");

sorry. about the two names. I have to computer open:)
#3
06/30/2006 (4:48 pm)
You have to watch that the bodies don't build up too much or you can get a performance hit.
#4
06/30/2006 (7:59 pm)
Thanks Tom. But I want the engine to crash and to see how many bodies there is left. I want to record and docuemt where you die. hehe