Home   Help Search Login Register  

Author Topic: explosition in the air?  (Read 1932 times)

0 Members and 1 Guest are viewing this topic.

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
explosition in the air?
« on: 03 Oct 2007, 14:52:49 »
How can I create an explosition in the air?

I mean I want a small (or not too small) explosition above the ground.

I tried to create a handgrenade in 80m above the ground, but it was falled down and explode on the ground.
Then I tried to damage it with setDammage, but same effect.
Fix bayonet!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: explosition in the air?
« Reply #1 on: 03 Oct 2007, 15:38:44 »
Search result :P

Other way could be to fake the explosion with particles.. :dunno:
« Last Edit: 03 Oct 2007, 15:40:16 by h- »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: explosition in the air?
« Reply #2 on: 03 Oct 2007, 16:49:42 »
Code: [Select]
_bomb = "Bomb" createVehicle [x,y,z];
_bomb setPos [x,y,z];
_bomb setDamage 1;
Sleep 1;
deleteVehicle _bomb

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
Re: explosition in the air?
« Reply #3 on: 04 Oct 2007, 07:34:43 »
Thanks!
Fix bayonet!

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: explosition in the air?
« Reply #4 on: 27 Apr 2008, 06:20:09 »
I need a less powerful explosion in the air (the "bomb" is way to big for my needs), like from a "Sh_105_HE".

Is there a way to do that?
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: explosition in the air?
« Reply #5 on: 27 Apr 2008, 08:35:20 »
Try this
Code: [Select]
   _b2 = "Computer" createVehicle _pos;
   _b2 setPos _pos;
   _b1 = "M_Strela_AA" createVehicle _pos;
   sleep 0.2;
   deleteVehicle _b2;
   deleteVehicle _b1;

Offline Rommel92

  • Members
  • *
Re: explosition in the air?
« Reply #6 on: 27 Apr 2008, 09:25:04 »
Should of thought of that, I made nades like 50m up and predicting your movement to create explosions in the air like flak...  :whistle: :P

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: explosition in the air?
« Reply #7 on: 30 Apr 2008, 07:40:32 »
Thanks mando, you got me a lot closer to the solution.  However, I still only had about 50% success of the collision taking place between the two objects.  I then changed it to create the bomb at position returned by modelToWorld, and it seems to work every time.  The idea here is that the bomb is created at the center of the collision object, rather than its position (which is probably just below the actual object).  Here's the modified code:

Code: [Select]
_b2 = "computer" createVehicle _pos;
 _b2 setPos _pos;
 _b1 = "M_Stinger_AA" createVehicle (_b2 modelToWorld [0,0,0]);
~.2
   deleteVehicle _b2;
   deleteVehicle _b1;
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: explosition in the air?
« Reply #8 on: 30 Apr 2008, 10:27:49 »
Good point  :good:. You might also try with smaller objects like the roadcone or a mine.