Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: How to create a fade sound?  (Read 3147 times)

0 Members and 1 Guest are viewing this topic.

Offline Nico [BOS]

  • Members
  • *
    • Communauté Francophone ArmA
How to create a fade sound?
« on: 25 Sep 2009, 23:55:27 »
Hello,

(A French trying to write in english ^^)

Here my goal :
I would like to create a fade sound (from 0 to normal level) at the beginning of a SP mission.

In the story, at the beginning the player is in cargo of a UH-1 flying.
I would like the sound of turbines gradually come (from 0 to normal level) to the ears of the player.

I tried with :
  • file init.sqf :
    0 fadesound 0;
    [] execVM "volume.sqf";

    if (true) exitWith {};


  • file volume.sqf :
    sleep 1;
    10 fadesound 1;

    if (true) exitWith {};


When I launch the mission there is no sound, so the first step is reached.
But after less than 2 second the sound comes directly, there is no fade sound : the second step is failed.

So, do you have an idea or an other way for me to reach my goal ?
Thank you.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: How to create a fade sound?
« Reply #1 on: 26 Sep 2009, 01:02:53 »
Yes, that is a bug with the sound of the vehicle itself.
You have an option, record the sound of the chopper and configure it in the description.ext.
Start the mission with your fade command and just after that command execute a chopper say3D your chopper engine sound resource name. Make sure the recorded sound time is the same as the time to fade the sound. So, when your custom sound ends the sound volume is max and the real chopper engine sound will be there.

Offline Nico [BOS]

  • Members
  • *
    • Communauté Francophone ArmA
Re: How to create a fade sound?
« Reply #2 on: 15 Oct 2009, 12:17:17 »
I'm late to answer (HDD down)  :)

Unfortunately I expected this response ^^

Thank you.