Mousebutton respawn
by Howard Dortch · in Torque Game Engine · 01/29/2005 (10:56 am) · 5 replies
How can I prevent the player from respawning with the mouse? I would like the player to stay dead for the duration of the startFade/delete routines.
#2
01/29/2005 (1:09 pm)
I dont see anywhere on the client for a call to server for respawn (assuming my find in files works). The only thing I can find is in the armor::onDisabled function where the startfade is. The only thing I see hooked to the mouse is the fire. Can you get me a bit closer?
#3
When your player gets killed and you click the left mouse the player respawns. I can't find the path of code .
02/03/2005 (4:53 am)
I have been trying to track down the $mvTriggerCount0 global and can only find one such instance. I dont see how this is converted to onMouseDown event segregated into fire the weapon vs respawn vs click a button. Can anyone shed some light on the path this $mvTriggerCount0 takes to create the event?When your player gets killed and you click the left mouse the player respawns. I can't find the path of code .
#4
Observer::onTrigger
case "Corpse":
%client.spawnplayer();
02/03/2005 (6:14 am)
The respawn function is triggered from camera.cs.Observer::onTrigger
case "Corpse":
%client.spawnplayer();
#5
02/03/2005 (6:25 am)
Thanks Billy! That was easy when you know what to look for! mouseDown, trigger, triggers, enter triggers all seem to blur together.
Associate Kyle Carter