OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
I think fadeMusic & fadeSound are the commands you need.
-
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.
-
You'll have to make sure that you designateyour sound as either sound or music in the description.ext.