Player::setVoiceFxVolume: Difference between revisions

From RAGE Multiplayer Wiki
(types)
No edit summary
 
Line 15: Line 15:
*'''fTime:''' {{RageType|float}} The time to take to transition from the current level to the new level, in seconds. The default value is 0.
*'''fTime:''' {{RageType|float}} The time to take to transition from the current level to the new level, in seconds. The default value is 0.
*'''lCurve:''' {{RageType|int}} The curve to use in the transition... 0 = linear, 1 = logarithmic. The default value is 0.
*'''lCurve:''' {{RageType|int}} The curve to use in the transition... 0 = linear, 1 = logarithmic. The default value is 0.
==See also==
{{VoiceFx_definition_c}}


[[Category:Clientside API]]
[[Category:Clientside API]]

Latest revision as of 08:34, 10 November 2024

Syntax

player.setVoiceFxVolume(fxHandle, {
    fTarget,
    fCurrent,
    fTime,
    lCurve
});

Required Arguments

  • fxHandle: int The effect handle.
  • fTarget: float The new volume level... 0 = silent, 1.0 = normal, above 1.0 = amplification. The default value is 1.
  • fCurrent: float The current volume level... -1 = leave existing current level when setting parameters. The default value is 1.
  • fTime: float The time to take to transition from the current level to the new level, in seconds. The default value is 0.
  • lCurve: int The curve to use in the transition... 0 = linear, 1 = logarithmic. The default value is 0.

See also