OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: pazuzu on 29 Oct 2004, 09:33:59
-
Hi, I was wondering if it is possible to detonate a satchel with a trigger?
Acually I'd like several satchels to blow...
I haven't been able to find anything on this...
Thanks.
-
hmm..dont know about satchels, but you could use other explosives like tank shells and stuff, but it depends on how you are using them.
are they going to be placed by a unit ingame or are they going to be at set points?
-
Thanks for replying.
I'm making a mission where some pow's & civil hostages are being held.
I want the enemy camp to be rigged with explosives & have some sort of condition like if the leader detects us before we can snuff him he will detonate the explosives killing everyone....Mission failure. Or maybe he sets timer for them to blow giving us a chance to evac hostages & get them to safety...
I just want to be able to trigger the bombs & have them appear to be C-4 or some similar explosive.
I also considered using the CoC nuke & setting it off with another explosive...
Thanks.
-
alright i made the script and its attached
to use it you will need game logic units at every spot where there will be an explosion
then have the trigger that will cause the explosion and in the activation field type
[[gamelogic1,gamelogic2,etc.], 0] exec "Explode.sqs"where the gamelogic1,2 ect will be replaced with the names of each game logic you want
and the 0 is the delay between each explosion, so the way it is it is instantaneous, but if you make it 2 there will be 2 seconds of space between each explosion
you can also use this for vehicles or men, or anything listed under units in the editor for that matter.
tell me if there are any problems, but it should work just fine, i've tested it though, and it worked fine for me
-
I appreciate your help but I cant get this thing to work...
I keep getting errors the way its typed in activation field.
[bomb1, bomb2, bomb3, bomb4],2] exec "Explode.sqs"
Thats how I tried & a few other ways but kept getting errors...
I have all the gamelogics named right...
Am I missing something?
-
[bomb1, bomb2, bomb3, bomb4],2] exec "Explode.sqs"
you need 2 brackets at the beginning
so it would be:
[[bomb1, bomb2, bomb3, bomb4],2] exec "Explode.sqs"
I fixed my first post, apparently the first bracket wouldn't show up until i put it as a code ???
-
That was the problem.
It works great now.
Thank you very much.
-
no problem
-
I'll put a credit for you in my mission...
You should post this script at ofpec. All I could find there were carbomb scripts & others that just didn't work for what I wanted. I'm sure alot of noobs could use a good basic script like this.
Thanks again
-
beat you to it, it's already pending at the moment
-
Good man...