OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penguinman on 09 Jun 2005, 04:04:08

Title: finding explosions
Post by: penguinman on 09 Jun 2005, 04:04:08
how would I find an explosion for a script and also find what kind of bomb made it(shell105,grenade,ect..)

thanks in advance
Title: Re:finding explosions
Post by: THobson on 09 Jun 2005, 07:47:55
Not quite sure what you mean.  Why would you not just camcreate a few different types of explosives and see which you prefer?
Title: Re:finding explosions
Post by: Mr.Peanut on 09 Jun 2005, 09:59:36
lol
Title: Re:finding explosions
Post by: RujiK on 09 Jun 2005, 17:34:17
A heck of alot of event handlers.
Title: Re:finding explosions
Post by: 456820 on 09 Jun 2005, 18:12:38
how about expanding on your question
Quote
how would I find an explosion for a script

do you mean what kind of explosion or even finding the ecplosion on the map like nearest object or what ever im not sure everyone knows what you mean
and also
Quote
and also find what kind of bomb made it(shell105,grenade,ect..)
well wouldnt you know if you just created it ? ??? ???
or do you mean grab an explosion with a command then find out what kind of explosion it was and carry on from there ??
Title: Re:finding explosions
Post by: penguinman on 09 Jun 2005, 18:49:36
no i mean like, have a trigger, and detect if there are any explosions in it, and also find what type they are for use in a script.

like if a grenade went off it would give the script, the exact pos the grenade exploded, and also that it was a grenade
Title: Re:finding explosions
Post by: DBR_ONIX on 10 Jun 2005, 15:00:19
Fired event handler on all units, I suppose
Then check the _this select 2 or 3, if it's in an array of explosive stuff (Hand Greandes, for example), track the object till it's destroyed, then theres your explosion..
Not very CPU-freidnly, but only way I can think of just now..
- Ben