Audio::playAmbientSpeechAtCoords

From RAGE Multiplayer Wiki
Revision as of 19:49, 27 August 2020 by Krotter (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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