45 lines
1.1 KiB
HTML
45 lines
1.1 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<A HREF="../index.htm">Call of Duty Script Documentation</A>
|
|
<BR>
|
|
<H1>setchannelvolumes(<priority>, <shock name>, <fade time> )</H1>
|
|
<BR>
|
|
</HEAD>
|
|
<BODY>
|
|
<H2>Module<PRE>Player</PRE></H2>
|
|
<BR>
|
|
<H2>Summary</H2>
|
|
<BR>
|
|
<PRE>
|
|
Set the channel volumes for the player (a way of fading volumes by type)
|
|
</PRE>
|
|
<BR>
|
|
<H2>Call this function on</H2>
|
|
<BR>
|
|
<PRE>
|
|
The player
|
|
</PRE>
|
|
<BR>
|
|
<H2>Example</H2>
|
|
<BR>
|
|
<PRE>
|
|
level.player setchannelvolumes("snd_channelvolprio_pain", "pain", 1, .7, 3);
|
|
</PRE>
|
|
<BR>
|
|
<H2>Minimum Number of arguments: 2</H2>
|
|
<BR>
|
|
<UL>
|
|
<PRE>
|
|
<LI>1 : <priority>: Valid priorities are "snd_channelvolprio_holdbreath", "snd_channelvolprio_pain", or "snd_channelvolprio_shellshock".</LI>
|
|
<LI>2 : <shock name>: string describing the name of the .shock file w/ the channel volumes values to use.</LI>
|
|
</PRE></UL>
|
|
<H2>Number of optional arguments: 1</H2>
|
|
<BR>
|
|
<UL>
|
|
<PRE>
|
|
<LI>1 : <fade time>: in seconds.</LI>
|
|
</PRE></UL>
|
|
<BR>
|
|
<A HREF="../index.htm">Return to Function List</A><BR>
|
|
</BODY>
|
|
</HTML>
|