Game Development Community

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?

#1
08/02/2007 (8:02 pm)
Sounds like a sadistic move, rofl.

1. Become God.
2. Will it.

Can't help you on the TGE version, though.
#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.
#3
08/02/2007 (9:25 pm)
Thanks tim

chris\"c2\"byars get a fucking life
#4
08/02/2007 (10:18 pm)
Whoa.. easy now, he was just making a joke.


(cool idea fope)
#5
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
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
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.
#12
08/03/2007 (4:07 pm)
Nice thread I needed the info and it came to me...

Thanks god? ;)
#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
11/23/2007 (3:22 pm)
Thx for the help, this can I use one day :P

he was asking for help not a joke, if you don't have anything to say about the subject don't type!