Audio::playAmbientSpeechAtCoords: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Syntax==<syntaxhighlight lang="javascript">audio.playAmbientSpeechAtCoords(p0, p1, p2, p3, p4, p5);</syntaxhighlight>=== Required Arguments ===*'''p0:''' String*'''p1:''' String*'''p2:''' float*'''p3:''' float*'''p4:''' float*'''p5:''' String===Return value===*'''Undefined'''==Example==<syntaxhighlight lang="javascript">todo</syntaxhighlight>==See also=={{Audio_function_c}}[[Category:Clientside API]][[Category:TODO: Example]]
 
==Syntax==
<syntaxhighlight lang="javascript">mp.game.audio.playAmbientSpeechAtCoords(speechName, voiceName, x, y, z, speechParam);</syntaxhighlight>
=== Required Arguments ===
*'''speechName:''' String
*'''voiceName:''' String
*'''x:''' float
*'''y:''' float
*'''z:''' float
*'''speechParam:''' String
===Return value===
*'''Undefined'''
==Example==
<syntaxhighlight lang="javascript">
//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>
 
==See also==
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[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