Home   Help Search Login Register  

Author Topic: Creating an IED  (Read 2705 times)

0 Members and 1 Guest are viewing this topic.

Offline Dj Tano

  • Members
  • *
Creating an IED
« on: 15 Mar 2007, 09:38:38 »
Hey people,

i was trying to create an IED, but i cant find a way to do it.

Can you somehow put a trigger on a satchel charge that if you move into its radius it goes up?

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Creating an IED
« Reply #1 on: 15 Mar 2007, 11:29:17 »
Place your trigger, group it with the unit which will trigger the "BOOM" if present. Into its activation field put:
Code: [Select]
[bombposition]exec"createboom.sqs" being bombposition the position where you want to create the explosion.

Code: [Select]
;createboom.sqs
;execute it as [bombposition]exec"createboom.sqs"
_pos = _this select 0
_b2 = "Bomb" createVehicle _pos
_b2 setPos _pos
_b1 = "M_Ch29_AT" createVehicle _pos
~0.05
deleteVehicle _b2
exit

Offline satexas69

  • Members
  • *
Re: Creating an IED
« Reply #2 on: 15 Mar 2007, 19:18:54 »
OR, you can do it the easy and flexible way  :D

Using my script below, you can put anything you want on the ground to act as an IED (ANY object/vehicle/whatever) - and NAME it (let's say BOMB1)

Then, make a trigger, with any conditions you want, anywhere. Like maybe present OVER the bomb itself, or maybe flying into a zone you want tons of them to go off for effect.. whatever... but make a trigger.

In the activation, put this:   [BOMB1,"Sh_122_HE",1] exec "explos.sqs"

What that does, is hits BOMB1 with munition Sh_122_HE (nice heavy hit) from a height of "1". If you change height to say, 40, you can literally watch it drop from sky like a bombing.

I use this creative script to "fake" bombing runs, by having these bombs come from a large height to hit on the INVISIBLE H object - makes a neat effect.

Code: [Select]
; ***************************************
;Explosion Script by GuiltyRoachKillar
; Updated by ]KAW[ Rooster aka SATEXAS69
;******************************************
;
;To use make a trigger:
;Activation: [nameofobject,"ammotype",height] exec "explos.sqs"
;
;Example: [target1,"Sh_122_HE",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



Offline Dj Tano

  • Members
  • *
Re: Creating an IED
« Reply #3 on: 15 Mar 2007, 20:42:04 »
hey dude,

ive tried your bombing script, but it tells me that it cannot find the explos.sqs file.

this is how i did it:

i opened editor, pasted in your script, then saved the file with the name "explos.sqs", and finally i moved it into my mission folder.

Offline SaBrE

  • Members
  • *
  • I was once a Llama
    • www.Armed-Assault-Zone.com
Re: Creating an IED
« Reply #4 on: 15 Mar 2007, 20:57:59 »
You have to select all files not ".txt" and instead of ".sqs" it has to be capitals: ".SQS".
Can you HELP?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Creating an IED
« Reply #5 on: 15 Mar 2007, 21:25:58 »
Quote
it has to be capitals: ".SQS".
SaBrE, I'm sorry but that is complete and utter bulls**t..  :no:
Just absurd.. Where did you even hear that ?  :weeping:

I have written propably over 1000 scripts and all file extensions have always been lower case, so trust me that does not matter at all..
Basicly nothing in ArmA (or OFP) is case sensitive..


However, you are right with the .txt stuff..
Dj Tano, you have to change your windows settings, go to some folder and choose
Tools -> Folder options, from there select the View tab and scroll down the list until you find Hide extensions for known filetypes and un-tick the box next to it and Apply.
Now you should see that your sqs file is actually explos.sqs.txt..
If so, then just edit the name; remove the .txt and you should be fine..

If not, then  :dunno:
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Dj Tano

  • Members
  • *
Re: Creating an IED
« Reply #6 on: 15 Mar 2007, 21:50:51 »
wohoo it works, thx a lot!

Offline SaBrE

  • Members
  • *
  • I was once a Llama
    • www.Armed-Assault-Zone.com
Re: Creating an IED
« Reply #7 on: 15 Mar 2007, 22:15:18 »
Sorry, I didn't mean within ArmA. It's just when I'm saving scripts as .SQS in Notepad, I needed to select "all files" and instead of ".sqs" I do need to type ".SQS" otherwise it still saves it as a ".txt" or something. That's what I mean.
Can you HELP?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Creating an IED
« Reply #8 on: 15 Mar 2007, 22:31:43 »
Ah ok, but that's still odd and weird because my Notepad saves as sqs without typing it in upper case, doing it just like you describe..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: Creating an IED
« Reply #9 on: 16 Mar 2007, 01:24:37 »
U could try using the bomb object and a setdamage trigger - works well for me.
...also leaves a nice fire burning for a few minutes afterwards!   :)
« Last Edit: 20 Aug 2009, 12:21:55 by savedbygrace »
just setpos & forgetpos!

Offline danturn

  • Members
  • *
Re: Creating an IED
« Reply #10 on: 13 Oct 2007, 17:54:06 »
Using my script below, you can put anything you want on the ground to act as an IED (ANY object/vehicle/whatever) - and NAME it (let's say BOMB1)

I tried it this way, and it was all so far so good until i set off the trigger only to get the message "bad vehicle type Sh_122_HE" or words too that affect... any ideas why this is?
« Last Edit: 13 Oct 2007, 19:49:00 by h- »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Creating an IED
« Reply #11 on: 13 Oct 2007, 18:17:58 »
danturn, is there any particular reason to quote an entire post already present in this page? "I tried Satexas way ..." would be equality effective.

Anyway, that way to create explosions did work for OFP but doesnt work anymore with ArmA.

Code: [Select]
;BOOOM in passed position (sqs)
_pos = _this select 0
_bomb = "Bomb" createVehicle _pos
_bomb setPos _pos
_bomb setDamage 1
~1
deleteVehicle _bomb
exit

Code: [Select]
// BOOOM in passed position (sqf)
_pos = _this select 0;
_bomb = "Bomb" createVehicle _pos;
_bomb setPos _pos;
_bomb setDamage 1;
Sleep 1;
deleteVehicle _bomb;

Offline danturn

  • Members
  • *
Re: Creating an IED
« Reply #12 on: 13 Oct 2007, 19:01:48 »
Oops, apologies, i didn't mean to quote the whole thing, forgot to cut it short!

I am only playing OFPres, as my computer won't run arma, (that will hopefully change when i upgrade my pc  :D)

I found this from searching, didn't realise it was for Arma woops. I really should pay more attention.

So his way technically should work, but won't for the reason previously mentioned :confused:

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Creating an IED
« Reply #13 on: 13 Oct 2007, 19:26:17 »
in OFP there are no 122 shells OFP/Res weapons and ammo.