OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Scratchdat on 04 Sep 2002, 22:45:10

Title: Satchel Charges Without Them Being Laid
Post by: Scratchdat on 04 Sep 2002, 22:45:10
How can I position satchel charges on a map and them detonate them without them actually being laid by a soldier(s).

In my mission, a group of Spetz Natz has laid satchels in a base, but the mission starts with them about to detonate.

How can I do it?
Title: Re:Satchel Charges Without Them Being Laid
Post by: OPF FREAK on 04 Sep 2002, 23:13:27
You could start the mission with a cutscene but have a  trigger where a  east spetnaz is (place in base and put setcaptive true) in the trigger East=Present in the on activation box put spet(the spetnaz) fire["Put", "Pipebomb"]
then put another trigger set for 2mins and (keep the cutscene going) east=present and in activation put spet setpos ["6000,6000"]. But you wont be able to set off the bomb so Make another trigger with no cutscene and put it around where the player is East=true again and put in activation  player AddAction ["touch off","bomb.sqs"]



In bomb.sqs put

spet action["TOUCHOFF"]

 
Title: Re:Satchel Charges Without Them Being Laid
Post by: Scratchdat on 05 Sep 2002, 00:17:58
Okay I tried it, but when the trigger is activated I just get an error message that says the 'fire' command is incorrect. It must be the wrong command.

Maybe: spet action ["put","pipebomb"]

or something along the lines of 'action'. eg dofire
Title: Re:Satchel Charges Without Them Being Laid
Post by: Scratchdat on 05 Sep 2002, 00:45:28
Okay, just to check, I did the same thing on a new mission, except this time I put the command in the unit's init field instead of in a trigger. And it worked. So I put the commands in my mission the black ops init fields. And guess what.

It didn't work!  :hmm:

WHY?????? :'( :'( :'(

Mods and experts please help me out!
Title: Re:Satchel Charges Without Them Being Laid
Post by: MaZ on 06 Sep 2002, 10:07:38
Place some markers where u want the satchels, and in init.sqs of your mission put

DETSATCHELS = false
bomb1 = "Pipebomb" camcreate getmarkerpos markername

@DETSATCHELS
bomb1 setdammage 1 (I _think_ this detonates them, not completely sure tho, probably wrong :()

and just do DETSATCHELS = true when u want em to detonate...

Title: Re:Satchel Charges Without Them Being Laid
Post by: red devil on 07 Sep 2002, 21:09:23
Easy get the editor updrade go in the editor go to wher u want the charge to be (it is under empty, ammo) then call it charge then make a trigger and in the trigger put

charge SetDammage 1

and there u go
Title: Re:Satchel Charges Without Them Being Laid
Post by: Sui on 08 Sep 2002, 07:16:12
As far as I know, you cannot detonate satchel charges using the setdammage command.

The only way to make them blow up is to have a unit plant them, then tell the unit to touch them off (as pointed out above in this thread).

However instead of using a satchel charge, you could just make an explosion using something like:

boom = "shell125" camcreate [ x,y,z ]

If you really needed the satchel charges there, you could camcreate them, then have the explosion and at the same time move the satchel charges away...
Title: Re:Satchel Charges Without Them Being Laid
Post by: XCess on 08 Sep 2002, 11:20:14
I thought they did blow up with setdammage but they made the vehicle destroyed noise I think. They don't disapear either but you can just setpos them into the sea.
Title: Re:Satchel Charges Without Them Being Laid
Post by: red devil on 11 Sep 2002, 19:43:53
Trust me it works I am the master of setpos (well....) I use it 4 everything