OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SimonRussi on 06 Sep 2002, 12:23:38

Title: Camcreating bombs
Post 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?
Title: Re:Camcreating bombs
Post by: icarus_uk on 06 Sep 2002, 13:09:03
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.
Title: Re:Camcreating bombs
Post by: Davies1 on 06 Sep 2002, 13:24:58
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.
Title: Re:Camcreating bombs
Post by: Davies1 on 06 Sep 2002, 13:41:35


[attachment deleted by admin]
Title: Re:Camcreating bombs
Post by: Cedaie on 06 Sep 2002, 14:00:57
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
Title: Re:Camcreating bombs
Post by: icarus_uk on 06 Sep 2002, 14:02:36
You have a 10metre trigger on your mines?  Heck Im staying away from your battle field.
Title: Re:Camcreating bombs
Post by: SimonRussi on 06 Sep 2002, 15:14:51
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 :)
Title: Re:Camcreating bombs
Post by: T.S.C.Plage on 06 Sep 2002, 18:22:25
Maybe you've forgotten to "setdammage" them?

Also the LGB is a great choice for simulating a bombardement!
Title: Re:Camcreating bombs
Post by: SimonRussi on 06 Sep 2002, 18:47:27
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 :)
Title: Re:Camcreating bombs
Post by: icarus_uk on 06 Sep 2002, 18:55:58
Use a grenade.  Just the same.