OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 13 Feb 2005, 12:09:32

Title: No sound
Post by: Gooner861 on 13 Feb 2005, 12:09:32
I've serached for the command but aint found it. I want it so there's no sound frm the game like gunfire etc but i want my custom music to still be playin.

Obviously i only want it for only a few seconds so need to know how to get the sound back.

CutSound or summin like that.

Cheers

Gooner
Title: Re:No sound
Post by: THobson on 13 Feb 2005, 13:10:45
I think fadeMusic & fadeSound are the commands you need.
Title: Re:No sound
Post by: nominesine on 13 Feb 2005, 18:39:31
THobson ins correct. Here's some examples:

0 fadeSound 0

Kills the sound instantly.

0 fadeSound 1

Makes the sound from the game (gun shots et cetera) come back again.

5 fadeMusic 0

fades the music down to zero (the second number) in five (the first number) seconds.

ThereÂ's a bug in the OFP game engine, so it is not possible to fade sounds. They are either on or off, like a lightswitch. Even though the comref says it's possible.
Title: Re:No sound
Post by: The-Architect on 13 Feb 2005, 19:24:53
You'll have to make sure that you designateyour sound as either sound or music in the description.ext.