OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
Not quite sure what you mean. Why would you not just camcreate a few different types of explosives and see which you prefer?
-
lol
-
A heck of alot of event handlers.
-
how about expanding on your question
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
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 ??
-
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
-
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