Перейти к содержанию

Audio::playAmbientSpeechAtCoords

Материал из RAGE MP Wiki Archive

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