Home   Help Search Login Register  

Author Topic: Aircraft water splash (ACCEPTED)  (Read 3201 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemesis6

  • Members
  • *
Aircraft water splash (ACCEPTED)
« on: 03 Apr 2007, 17:54:09 »
All you have to do is shoot down the chopper and watch when it crashes into the water. So, what do you think?
« Last Edit: 01 Sep 2007, 19:27:38 by Mandoble »
I am actually flying into a star... this is incredible!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Aircraft water splash
« Reply #1 on: 03 Apr 2007, 19:21:49 »
Nice splash effect  :good:

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Aircraft water splash
« Reply #2 on: 03 Apr 2007, 19:30:27 »
I like it!  Good work.
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 Blanco

  • Former Staff
  • ****
Re: Aircraft water splash
« Reply #3 on: 09 Apr 2007, 04:12:35 »
Almost perfect  :good:

It would be better if the splash effect occurs when the chopper hits the water, not when it already in the water. Actually, same thing with ground explosions, choppers in Arma explode when they are on a ground for a while, not when they hit it.
But that's nitpicking, very nice effect  ;)

Btw, somewhere in your script thereare these 2 lines :

Quote
_x = getpos _gl select 0
_y = getpos _gl select 1

_x and _y are defined before the gamelogic (_gl) is created  ???
I removed these 2 lines and script still works fine.

« Last Edit: 09 Apr 2007, 04:40:47 by Blanco »
Search or search or search before you ask.

Offline Nemesis6

  • Members
  • *
Re: Aircraft water splash
« Reply #4 on: 11 Apr 2007, 15:07:29 »
Well, the problem is that the the script is triggered when the object is killed, and the game sees that as when the chopper has actually "exploded". So if a chopper is destroyed with an RPG in the air and crashes in the water, the effect will be instantaneous. But the most part, the chopper will "explode" when it hits the water, as witnessed, there are times where it doesn't.
I am actually flying into a star... this is incredible!

Re: Aircraft water splash
« Reply #5 on: 12 Apr 2007, 13:20:26 »
You could use a waitUntil to wait until the chopper is at 0 altitude before continuing with the splash.  Something like this:

Code: [Select]
waitUntil {(_chopper getPos select 2) <= 0.5};
Everything I have released for ARMA can be found here.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Aircraft water splash
« Reply #6 on: 17 Apr 2007, 16:46:28 »
Only if the _chopper variable persists after the chopper is dead?
« Last Edit: 17 Apr 2007, 19:55:49 by Mr.Peanut »
urp!

Offline Vigilante

  • Members
  • *
    • Vigilante Virtual Systems & Dynamics
Re: Aircraft water splash (ACCEPTED)
« Reply #7 on: 04 Sep 2008, 13:27:57 »
waitUntil {((!alive _chopper) && ((_chopper getPos select 2) <= 0.5)) || ((_chopper getPos select 2) <= 0.5)};

?

maybe put the last position of _chopper into a globalvariable and use that in the script and remember to kill the globalvariable after use in the splash script.
« Last Edit: 04 Sep 2008, 13:33:05 by Vigilante »
a.k.a. PhilippRauch

check out my Addon Wiki http://www.vigilante-systems.webs.com (WIP and outdated :P)
http://www.youtube.com/user/vigilante-systems