OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SneakyPete on 01 Apr 2005, 16:35:12

Title: Music without Sound in Intros
Post by: SneakyPete on 01 Apr 2005, 16:35:12
How can I make an Intro that plays Music buts has the Game sounds turned down.

At the moment the vehicles drown the music out!

Any help would be appreciated

P
Title: Re:Music without Sound in Intros
Post by: nominesine on 01 Apr 2005, 16:41:00
0 fadeSound 0

instantly reduces the volume of the game sound to zero. When you want to switch it back on again you use:

0 fadeSound 1

The first number is the time in seconds before the volume reaches the level you specify with the second number. Volumes goes from 0 (nothing) to 1 (maximum volume).

But fadesound doesn't really allow actual fading in/out of the sound. It works like a light switch. Sound is either on or off. Any number higher than 0 will give you full volume (at least with the sound cards I've tried).
Title: Re:Music without Sound in Intros
Post by: SneakyPete on 01 Apr 2005, 16:46:13
wow that was quick.

duh so simple!

Thanks nominesine.
Title: Re:Music without Sound in Intros
Post by: nominesine on 01 Apr 2005, 18:12:11
5 minutes... I'm getting old, fat and slow  ;D