OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: goki on 23 Jun 2003, 19:17:18

Title: turning the volume up / down / shuting it down?
Post by: goki on 23 Jun 2003, 19:17:18
Hi   :wave:

how can I turn the volume up / down or shut it down through the game ? can I use trigger to make this? if it is sqs thing so it fits me too.  :thumbsup:

I know there are three types of sound ( music, effects and radio ) can you say to me which commands work for which one?  :hmm:

thanks a bit ( just kiddin   ;D  )  :moon:


C U ( I drive at see you )  :tomato:

-G
.   :wave:
Title: Re:turning the volume up / down / shuting it down?
Post by: Knut Erik on 24 Jun 2003, 00:02:57
To music,
x fadeMusic y

X = The time the music will use to fade
Y = The volume the music should fade into. Default is 0.5

Exsample:
1 fadeMusic 1
This makes the music's volume become 1 in 1 second.

To sound,
Exsactly the same, just the command is fadeSound
x fadeSound y

I dunno about the radio.

These commands can go in scripts/initFields/Triggers/Wp's

Any helpfull?
Title: Re:turning the volume up / down / shuting it down?
Post by: goki on 25 Jun 2003, 09:58:27
"any helpful?"

Man are you kidding?  :P it opened a new perspective to me  8)

thanks,


C U ( see you )  :tomato:

-G.
Title: Re:turning the volume up / down / shuting it down?
Post by: Knut Erik on 26 Jun 2003, 12:24:45
Hehe. Good. Now just press the solve topic button  ;D

That would be helpfull to me :D