OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SimonRussi on 06 Sep 2002, 12:23:38
-
I use the camcreate trick to create explosions.
bomb= "..." camcreate [_x, _z, 0]
i tried various types of bombs: it works with SHELL's and HEAT's and SmokeShell. It doesn't work with HandGrenade, GrenadeLauncher, PipeBombs and Flares. Why? Is there a trick or something to use HandGrenades?
-
You need the names right.
Grenade works. HandGrenade works as well. And SmokeShell, SmokeShellRed, SmokeShellGreen. If you camcreate a satchel charge you cant then set it off, so you need some clever faking way if you want to use a satchel.
-
what i do is create a logic and name it.
create a trigger with the activation whatever you like (radio/units etc)
then write this little ditty in the activtion line.
grenade = "whatever you choose" camcreate [getpos logicname select 0, getpos logicname select 1, (getpos logicname select 2) + x]
x = the height you want whatever to appear.
-
[attachment deleted by admin]
-
why go through all that ribble blabber when you can do it the easy way,
mine setpos getpos Triggername
mine setdammage 1
Or if you wanna make it so the mine sets off when the player is near
#weee
?not(player distance mine > 10):goto "boom"
goto "wee"
#boom
Mine setdammage 1
exit
easy!
Cheers ;D
-
You have a 10metre trigger on your mines? Heck Im staying away from your battle field.
-
thanks everybody, but i only need the bombs types, all the rest is already on and working well. Didn't tried "Grenade" but sure as hell "HandGrenade" doesn't work on my situation...
And no, i'm not making a mine, i'm making a artillery script :)
-
Maybe you've forgotten to "setdammage" them?
Also the LGB is a great choice for simulating a bombardement!
-
thinks everybody...
i'd like the HandGrenade to work cause i'd like a great number of small explosion... a cluster bomb!
edit: it was supposed to be a "thanks", not a request to think :)
-
Use a grenade. Just the same.