OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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"]
-
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
-
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!
-
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...
-
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
-
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...
-
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.
-
Trust me it works I am the master of setpos (well....) I use it 4 everything