Scripting: key bind to trigger Exploding Barrels question
by Frank Dellario · in Technical Issues · 03/30/2006 (1:41 pm) · 2 replies
Hey guys, a scripting question. I'm working on making your standard exploding barrel...explode but not the way you normally do in a game (by shooting it). We produce machinima animation (the TrashTalk show www.illclan.com) and I need to make things happen on command generally with a key command by server. Currently to make something explode, we just put someone in a tank off camera and fire at it (hey it's machinima filmmaking, it's all about the quick work around). Would like to take that explosion and attach it to any object and trigger it with a bound key, in this case a nice red barrel that says "Flamable" on it.
Working on a segment where I need to make various barrels and maybe other objects explode. They're static shapes with no mount point (and dont have time to give them one nor do I think I need to, mount goes to centroid). Digging through Maurina's new torque book, and it looks like I can create a script for the barrels that will have all the info, but how do I set up how they're triggered?
I've never created a script on my own, just adjusted the existing parameters in scripts, so I'm starting to feel like I'm over my head. I will also have a lot of barrels so the other problem will be how to have multible barrels explode at different times.
illbixby
Working on a segment where I need to make various barrels and maybe other objects explode. They're static shapes with no mount point (and dont have time to give them one nor do I think I need to, mount goes to centroid). Digging through Maurina's new torque book, and it looks like I can create a script for the barrels that will have all the info, but how do I set up how they're triggered?
I've never created a script on my own, just adjusted the existing parameters in scripts, so I'm starting to feel like I'm over my head. I will also have a lot of barrels so the other problem will be how to have multible barrels explode at different times.
illbixby
#2
Still interested and that would great. Love the book by the way. I had printed out part of the pdf a while back, started to pour over it again, then printed out all of the rest of it prior to the GDC last week, get to the gdc to find out that, doh, your book was out. Bought it on the spot, transfering all my red lines now, thanks alot pal.
There was some great suggestions on this thread but it didn't work www.garagegames.com/mg/forums/result.thread.php?qt=42122
Key here would be, if possible:
1- how to make a static object explode or trigger some other event (ie barrel explodes when hit, then vanishs or leaves debrie, a gate that shatters into pieces when a car hits it, etc)
2- big one for me (since this is machinima and not a game) would be bhow to trigger an event without it being about the object taking damage. Stepping on a floor plate, touching an object, or by a key bind (best for our use since we're using it for machinima and need that kind of control)
3-How to setup up a series of emitter events. The tank code has this wonderful explosion that sets off multiple emitters including debrie flying off. How can you place an event like that that is triggered as well since it's not just one emitter.
Thanks again for the hard work on the book and the prior pdf, and for the lesson cases. I'll check them out as well sir.
frank "illbixby" dellario
www.illclan.com
04/04/2006 (7:21 am)
Edward,Still interested and that would great. Love the book by the way. I had printed out part of the pdf a while back, started to pour over it again, then printed out all of the rest of it prior to the GDC last week, get to the gdc to find out that, doh, your book was out. Bought it on the spot, transfering all my red lines now, thanks alot pal.
There was some great suggestions on this thread but it didn't work www.garagegames.com/mg/forums/result.thread.php?qt=42122
Key here would be, if possible:
1- how to make a static object explode or trigger some other event (ie barrel explodes when hit, then vanishs or leaves debrie, a gate that shatters into pieces when a car hits it, etc)
2- big one for me (since this is machinima and not a game) would be bhow to trigger an event without it being about the object taking damage. Stepping on a floor plate, touching an object, or by a key bind (best for our use since we're using it for machinima and need that kind of control)
3-How to setup up a series of emitter events. The tank code has this wonderful explosion that sets off multiple emitters including debrie flying off. How can you place an event like that that is triggered as well since it's not just one emitter.
Thanks again for the hard work on the book and the prior pdf, and for the lesson cases. I'll check them out as well sir.
frank "illbixby" dellario
www.illclan.com
Associate Edward F. Maurina III
Roaming Gamer LLC
I've been waiting to see if anyone answered this question for you. I should have jumped in earlier. This is an ideal 'New Lesson' case. If you're still interested in some help on this, please reply in this thread and I'll put a new lesson for the GPGT lesson kit together demoing some ideas for you OK?
EdM|GPGT