Audio::playSound: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
Line 13: Line 13:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.game.audio.playSound(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", true, 0, true);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==

Latest revision as of 13:46, 24 June 2018

All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/A8Ny8AHZ

Syntax

mp.game.audio.playSound(soundId, audioName, audioRef, p3, p4, p5);

Required Arguments

  • soundId: int
  • audioName: String
  • audioRef: String
  • p3: Boolean
  • p4: int
  • p5: Boolean

Return value

  • Undefined

Example

mp.game.audio.playSound(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", true, 0, true);

See also