OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Cloney on 09 Oct 2002, 05:14:30
-
I'm wondering if there is anyway to trigger explosions using a radio trigger. For example, instead of having to plant satchel charges, would there be a way I could make 'bombs' and destroy them on command?
Like, I hit radio alpha and I detonate some prepositioned "explosives" under the bridge and kaboom!
-
Just have the radio command setup so that upon activation it "Object setDammage 1". Where Object is what object needs to blow.
-
You could also use this when you activate the radio
It will create an exposion when activated.
shell = "heat120" camcreate [(getpos gl1 select 0)+10, (getpos gl1 select 1)+0, (getpos gl1 select 2)+0]
shell = "heat120" camcreate [(getpos gl1 select 0)+10, (getpos gl1 select 1)+0, (getpos gl1 select 2)+0]
The gl1 is the name of the game logic unit you use to
select the position.
Just create whatever shell you need.
And the +0 at the end of each brackets is the position [x,y,z]you could choose. The end one,z is meters above the
ground.
Hope this helps ;D
-
Thanks for all your help guys!
-
There's a new script snippet just in that might do the trick. Look in the Editors Depot, Script Snippets - Mines and Traps. I think its called Satchel bomb script.