Audio::getNetworkIdFromSoundId: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Could this be used alongside either, <br>SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES or _SET_NETWORK_ID_SYNC_TO_PLAYER to make it so other players can hear the sound while online? It'd be a bit troll-fun to be able to play the Zancudo UFO creepy sounds globally.
Could this be used alongside either, <br>SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES or _SET_NETWORK_ID_SYNC_TO_PLAYER to make it so other players can hear the sound while online? It'd be a bit troll-fun to be able to play the Zancudo UFO creepy sounds globally.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">audio.getNetworkIdFromSoundId(soundId);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.getNetworkIdFromSoundId(soundId);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''soundId:''' int
*'''soundId:''' int
Line 13: Line 13:
{{Audio_s_function_c}}
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Audio API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:06, 11 May 2017

Could this be used alongside either,
SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES or _SET_NETWORK_ID_SYNC_TO_PLAYER to make it so other players can hear the sound while online? It'd be a bit troll-fun to be able to play the Zancudo UFO creepy sounds globally.

Syntax

mp.game.audio.getNetworkIdFromSoundId(soundId);

Required Arguments

  • soundId: int

Return value

  • int

Example

// todo

See also