Forum Jump :

Author Message


Posts: 62
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2007-05-25 14:46        
     
I read the thread about the car bomb which I thought was useful. Would it be possible to do the same with a civilian? Only reason I ask is that I`m trying to set up a road block with a couple of civilians etc and I`d really like to make one of them go off with a large bang when they reached as certain point.

This is something I`d like to use during a mission and not be activated by a radio trigger.

Thanks

DbD


Author Message


Posts: 233
Rank:


Level: Member

Country: uk
Location: Deviant Wing
Occupation:
Age: 35
In-game name:

 
#2 Posted at 2007-05-25 14:56        
     
This is what i have used in so many missions ;)

You can make anything a bomb. Object, unit etc...

Heres the script i use...

; ***************************************
;Explosion Script by GuiltyRoachKillar
; Updated by ]KAW[ Rooster aka SATEXAS69
;******************************************
;
;To use make a trigger: 
;Activation: [nameofobject,"ammotype",height] exec "explos.sqs"
;
;Example: [target1,"Bo_GBU12_LGBE",15] exec "explos.sqs"
;
; ***************************************
; This is great for making stuff explode using triggers and such...
;
; OR -
;
; You can simulate a huge bombing run like I have, by making a bunch of "H" objects
; using the INVISIBLE ones, and naming them "target1"... "target2"... and then having
; a plane fly over them setting off the above in a trigger... I stack multiple in a
; single Activation line varying the height for tons of fun in my mission
; called "FORT ROOSTER"
;
; ***************************************

;Get the array parameters and define _pos...
_unit = _this select 0
_ammo = _this select 1
_height = _this select 2
_pos = getpos _unit

;set _pos height according to what's in the array
_x = _pos Select 0
_y = _pos Select 1
_z = ( _pos Select 2) + _height
_pos = [_x, _y, _z]

#b
bomb= _ammo createvehicle _pos
bomb2= _ammo createvehicle _pos

exit

Hope this helps ;)


Advertisement


Author Message


Posts: 62
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2007-05-25 15:09        
     
Woah, seems complicated. Apologies if I sound like a noob at this but I am 8-).

Where exactly is the script entered? Probably obvious when I`m looking at the screen rather than flunking off in the office 8-P.


Author Message


Posts: 233
Rank:


Level: Member

Country: uk
Location: Deviant Wing
Occupation:
Age: 35
In-game name:

 
#4 Posted at 2007-05-25 15:23        
     
No problems ;)

Download this file Explos then put the explos.sqs inside your mission folder, with your mission.sqm.

First off, in the mission editor... create your civilian then name him BOMB1

Sencondly, place a trigger with the following...

In the On activation field...
[BOMB1,"Bo_GBU12_LGB",1] exec "explos.sqs"

Make the trigger whatever size you feel is right, then press f2 and group the civilian to the trigger you just created. Now when the civilian enters the trigger BOOOOOM!

You can do little adjustments where needed ;) depending on how you want to set the bomb off.

EDIT

Just fixed alittle typo ;)

[BOMB1,"Bo_GBU12_LGBE",1] exec "explos.sqs"

to...

[BOMB1,"Bo_GBU12_LGB",1] exec "explos.sqs"


Author Message


Posts: 499
Rank:


Level: Member

Country: pl
Location: FakeStreet 123
Occupation: School :-(
Age: 27
In-game name:

 
#5 Posted at 2007-05-25 15:42        
     
_object = _this select 0
_target = _this select 1
_distance = _this select 2
@_object distance _target <_distance
"Bo_GBU12_LGB" createVehicle[(getpos _object select 0)+0*sin _unitdir, (getpos _object select 1)+0*cos _unitdir, 0]
_object setdamage 1

Make a new file in your mission folder (text document) and call it suicide.sqs
Now open the file using notepad and paste the above code into it.
You can use this code for several units just type this into the Init line of the unit:
[Units name, targets name, distance to target at which unit blows up] exec "suicide.sqs"
EXAMPLE:
[John, Carone, 20] exec "suicide.sqs"
The example will make the unit called John blow up once it gets 20 meters away from the unit called carone.
Hope this helps :)

11 o'clock Enemy space station 200

Author Message


Posts: 62
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#6 Posted at 2007-05-25 15:54        
     
Thanks for that. Can`t get the guy to explode however. Have placed the info in the locations you mentioned (both missions and mymissions) but he doesn`t seem to want to go bang. Guess I`ll just have to shoot him.

Can`t actually seem to find my sqm (Idid a search and there are no sqm`s in my aram folder at all)so I`m obviously doing something wrong. Do I have to synch it or anything as he just wanders through the trigger at the mo.

I`ll keep fiddling.

This post was edited by DeadbyDawn (2007-05-25 16:05, ago)


Author Message


Posts: 62
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#7 Posted at 2007-05-25 16:25        
     
Okay...have tried creating a file in notepad and calling it suicide.sqs. I entered the code as shown and then saved the file in both mymissions and missions. When the mission previews it says it cannot find the suicide.sqs script. I can see the file in the folder as a txt. ,how do i turn it into a script file? Any thoughts?

This post was edited by DeadbyDawn (2007-05-25 16:38, ago)


Author Message


Posts: 20630
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 43
In-game name: Foxhound

 
#8 Posted at 2007-05-25 18:07        
     
While saving your file (save as) make sure to set it to "all files types" or something similair. Than in the area where you put the name you add "suicide.sqs", than click save.

Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 62
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#9 Posted at 2007-05-25 18:40        
     
Okay, have some progress. Decided to copy the suicide file into every floder I could as it kept saying it couldn`t find it. Yay...a result! The civi runs over and then falls over dead. Is there any way I can add an explosion to this to hurt those around as presently his suicide only effects him and it looks like he`s just scraped a knee or something ). Not really a bomber..more of just a suicide.

Thanks for all the help

DbD


Author Message


Posts: 20630
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 43
In-game name: Foxhound

 
#10 Posted at 2007-05-25 19:58        
     
Are you using Flat!!!'s script template or the one from snake?

Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 499
Rank:


Level: Member

Country: pl
Location: FakeStreet 123
Occupation: School :-(
Age: 27
In-game name:

 
#11 Posted at 2007-05-25 20:31        
     
usually you can find your mission in:
X:\Documents and settings\user name\my documents\ArmA\missions\mission name
*note* that a space or _ in the mission name might show up as %20
The easiest way to make it into a script is to right click in the folder on an empty space and point onto new where you choose text document. Now you have a untitled.txt file in your folder. Now right click on the text document and choose rename. In the box erase everything including the .txt and write suicide.sqs. Now you should be able to use it.
*note* if you have created a new profile apart from the default the path will be:
X:\Documents and settings\user name\my documents\ArmA other profiles\profile name\missions\mission name

PS do not pute the script in the folder with all your SP missions.

11 o'clock Enemy space station 200

Author Message


Posts: 62
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#12 Posted at 2007-05-26 01:21        
     
Right, have had some success I think. Resorted to making a copy of the suicide file and sticking it in pretty much every folder I could find as having it just in the mission folder seemed to leave me with a constant error.

Anyway, got my suicide bomber to die and then realised that in order for him to work prperly I have to make the things around him die rather than make him explode causing damage. So I had him run up to a car etc which goes bang and takes a few people out. Seems to work fine now.

Thanks for the help guys and let me know if I`ve done it wrong ).

DbD


Author Message


Posts: 499
Rank:


Level: Member

Country: pl
Location: FakeStreet 123
Occupation: School :-(
Age: 27
In-game name:

 
#13 Posted at 2007-05-26 05:49        
     
Well of course putting something in every folder is not correct:p But if you are happy then I am happy...

11 o'clock Enemy space station 200

Author Message


Posts: 70
Rank:


Level: Member

Country: us
Location:
Occupation: US Army Infantry
Age:
In-game name:

 
#14 Posted at 2007-12-21 05:17        
     
Try this:IED. Put the script and put it in your mission folder...i.e. [my documents/arma/missions/yourmission]. Then name your character something (ap1 for instance). Then create a trigger wherever you want it to explode when he enters. In the init field of the trigger put
[ap1, "large"] exec "ied.sqs"
. When the civilian enters the area of the trigger, he'll cause a large explosion.

This post was edited by Eversmen88 (2009-06-26 01:31, ago)


Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location: New York
Occupation:
Age:
In-game name:

 
#15 Posted at 2009-05-14 01:34        
     
Hey, I am trying to make a car explode for a mission. I have a hummvee with a trigger that says [BOMB1,"Bo_GBU12_LGB",1] exec "explos.sqs" exec "explos. sqs", I have a harrier fly over to trigger the explosion but when it enters the zone it says that the script cant be found. I read on differnt parts of this site that i may have to save [BOMB1,"Bo_GBU12_LGB",1] exec "explos.sqs" to a text document in the mission folder under my user name. I did so and still run into the problem. I was wondering if you knew what may fix this.