Audio::playAmbientSpeechAtCoords: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
Line 13: Line 13:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
//Plays tazer electrocution pain sound at 0,0,0
 
mp.game.audio.playAmbientSpeechAtCoords("PAIN_TAZER", "WAVELOAD_PAIN_MALE", 0, 0, 0, "SPEECH_PARAMS_INTERRUPT_SHOUTED_CRITICAL");
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Audio_s_function_c}}
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 19:49, 27 August 2020

Syntax

mp.game.audio.playAmbientSpeechAtCoords(speechName, voiceName, x, y, z, speechParam);

Required Arguments

  • speechName: String
  • voiceName: String
  • x: float
  • y: float
  • z: float
  • speechParam: String

Return value

  • Undefined

Example

//Plays tazer electrocution pain sound at 0,0,0

mp.game.audio.playAmbientSpeechAtCoords("PAIN_TAZER", "WAVELOAD_PAIN_MALE", 0, 0, 0, "SPEECH_PARAMS_INTERRUPT_SHOUTED_CRITICAL");

See also