OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Egwal on 19 Apr 2003, 13:29:16

Title: Generating satchel charges...
Post by: Egwal on 19 Apr 2003, 13:29:16
How can I generate (I mean so thay are on their place when the mission starts) 3 satchel charges to a town and get them to blow up at the SAME TIME for example 5 minutes after the mission starts.
I know it has to do somethin with the camcreate command, but im not that good in mission editing yet ;)

Thanks

EgWal
Title: Re:Generating satchel charges...
Post by: titan on 19 Apr 2003, 14:13:47
sat = "pipebomb" camcreate getpos here

(this will create a charge at a trigger or object called here)

if u want to create it at a marker then its simpily...

sat = "pipebomb" camcreate getmarkerpos "here"


im not quite sure how u cld blow it up, try putting a trigger with all the times at 300 (5 mins in secs) and in the on activation field put...


sat setdammage 1



hope this helps!
Title: Re:Generating satchel charges...
Post by: Igor Drukov on 19 Apr 2003, 14:24:12
mysatchel1="pipebomb" camcreate "format position"
mysatchel2="pipebomb" camcreate "format position"
mysatchel3="pipebomb" camcreate "format position"
I don't think you can blow them up afterwards (mysatchel1 doesn't work, Titan), so here's a way round : create a trigger with "true" in the condition field, put 300 in max, min and med, and this in the activation field :
shell1="shell73" camcreate getpos mysatchel1;
shell3="shell73" camcreate getpos mysatchel2;
shell3="shell73" camcreate getpos mysatchel3
You'll get a real big explosion ;) as this will also blow the satchel charges up.
Or you can make a unit put charges where you want, and then order it to touch them off :
_myunit  fire ["put","pipebomb"] in the activation field of your WP
and, five minutes later (don't leave that unit too close !!!)
_myunit action ["TOUCHOFF"], for instance in another WP.
Title: Re:Generating satchel charges...
Post by: Igor Drukov on 19 Apr 2003, 14:28:37
Actually, shell1="shell73" camcreate getpos mysatchel1 won't destroy the satchel, so if you really don't want to see it, simply add :
DeleteVehicle  mysatchel1

Title: Re:Generating satchel charges...
Post by: titan on 19 Apr 2003, 14:36:43
just thinking, in min, mid and max put 270 and in the On Activation put

maysat1 = "timebomb" camcreate getpos here


that was it will create a sat charge there after 4mins 30secs then the sat will blow up 30 secs l8r.
Title: Re:Generating satchel charges...
Post by: Igor Drukov on 19 Apr 2003, 14:43:00
Yeah that works, it blows up after about 20 seconds. I guess EgWal will still have to camcreate and deletevehicle the satchel charges if he wants to see them at the beginning...
Title: Re:Generating satchel charges...
Post by: titan on 19 Apr 2003, 14:46:54
you cld camcreate normal pipebombs at the start, then at 4.30 mins camcreate timebombs on top of the pipebombs.