Chain explosions
by ITT019GreenBay (#0003) · in Torque Game Engine · 02/25/2008 (6:45 pm) · 1 replies
Hello, I was wondering if it was possible to have chain explosions. I want to make a game where you have to fire one shot to take out multiple targets. I want the explosions to have a 10 ft radius so anything within that will be destroyed, but the problem I'm having is making those objects send off an explosion themselves. I think copying the code from crossbow and pasting it into the oncollision part of the objects script might work but I'm not sure.
About the author
Torque 3D Owner Andrew Wiblemo
Remembering from the tribes days, grenades were just objects that had a schedule on it that would set it's health to 0, automatically calling the ondeath function. This allowed you to hit a grenade and destroy it before it's timer was up (usually done with a disk to add the explosive damage of both at once). I made a grenade in a mod that had no scheduled death, so you could set them as C-4 charges and detonate a group at once with a well placed shot, basically what you're trying.