Audio::playAmbientSpeechAtCoords: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.audio.playAmbientSpeechAtCoords(p0, p1, p2, p3, p4, p5);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.playAmbientSpeechAtCoords(speechName, voiceName, x, y, z, speechParam);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''p0:''' String
*'''speechName:''' String
*'''p1:''' String
*'''voiceName:''' String
*'''p2:''' float
*'''x:''' float
*'''p3:''' float
*'''y:''' float
*'''p4:''' float
*'''z:''' float
*'''p5:''' String
*'''speechParam:''' String
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==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