Audio::playSound: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/A8Ny8AHZ
All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/A8Ny8AHZ
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">audio.playSound(soundId, audioName, audioRef, p3, p4, p5);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.playSound(soundId, audioName, audioRef, p3, p4, p5);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''soundId:''' int
*'''soundId:''' int
Line 7: Line 7:
*'''audioRef:''' String
*'''audioRef:''' String
*'''p3:''' Boolean
*'''p3:''' Boolean
*'''p4:''' unknown (to be checked)
*'''p4:''' int
*'''p5:''' Boolean
*'''p5:''' Boolean
===Return value===
===Return value===
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