Lightning that kills
by Fope · in Torque Game Engine · 08/02/2007 (5:14 pm) · 15 replies
Question, how do i make lighting bolts kill people?
#2
08/02/2007 (8:06 pm)
Last time I used lightning, which was a long, long time ago, it already had that functionality. I.e. if a lighting bolt struck the player it would cause damage - the amount could be defined from the datablock.
#5
@Fope :
// Add these fields to your LightningData block
Then add this function below the datablock:
Make sure you do a little searching in the forums, as I found this solution in about 30 seconds using the keywords "lightning damage"
08/03/2007 (6:04 am)
@Chris - You are bordering on being antagonistic@Fope :
// Add these fields to your LightningData block
datablock LightningData(DefaultStorm)
{
directDamageType = $DamageType::Lightning;
directDamage = 100;
};Then add this function below the datablock:
function LightningData::applyDamage(%data, %lightningObj, %targetObject, %position, %normal)
{
%targetObject.damage(%lightningObj, %position, %data.directDamage, %data.directDamageType);
}Make sure you do a little searching in the forums, as I found this solution in about 30 seconds using the keywords "lightning damage"
#6
08/03/2007 (12:25 pm)
Thank you so much beacause i needed that to add karma to my game
#7
fuckin' guy cracks a joke and you go off..
You get a life.
note the simplicity of the request, and how trivial it was to answer.
with a minimal amount of research.
handing food to people like this who cannot even attempt to answer a question such as this themselves...
the whole thread is a joke.
08/03/2007 (12:44 pm)
Man, you lamers need to chill out.fuckin' guy cracks a joke and you go off..
You get a life.
note the simplicity of the request, and how trivial it was to answer.
with a minimal amount of research.
handing food to people like this who cannot even attempt to answer a question such as this themselves...
the whole thread is a joke.
#8
08/03/2007 (1:02 pm)
Thank you so much beacause i needed that to add karma to my game
#9
Calm down Badguy, you're gonna pop a blood vessel =)
08/03/2007 (1:11 pm)
No...this is a joke: Real Life Commenting Calm down Badguy, you're gonna pop a blood vessel =)
#10
08/03/2007 (1:24 pm)
Rofl.
#11
08/03/2007 (2:03 pm)
Rofl x2.
#13
08/03/2007 (5:15 pm)
@Stephan - You can just call me Michael =) (sorry, I couldn't resist)
#14
08/03/2007 (5:20 pm)
Heheheh, LOL 8-)
#15
he was asking for help not a joke, if you don't have anything to say about the subject don't type!
11/23/2007 (3:22 pm)
Thx for the help, this can I use one day :Phe was asking for help not a joke, if you don't have anything to say about the subject don't type!
Torque Owner Chris Byars
Ion Productions
1. Become God.
2. Will it.
Can't help you on the TGE version, though.