SetChannelVolumes( <priority>, <shock name>, <fade time> )

Module: Player


Set the channel volumes for the player (a way of fading volumes by type)

Call this on:

The player


level.player SetChannelVolumes( "snd_channelvolprio_pain", "pain", 1, .7, 3 );

Required Args:

  • 1 : <priority>: Valid priorities are "snd_channelvolprio_holdbreath", "snd_channelvolprio_pain", or "snd_channelvolprio_shellshock".
  • 2 : <shock name>: string describing the name of the .shock file w/ the channel volumes values to use.

Optional Args

  • 1 : <fade time>: in seconds.