Audio::getNetworkIdFromSoundId: Difference between revisions
(yay) |
(yay) |
||
| 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.==Syntax==<syntaxhighlight lang="javascript">audio.getNetworkIdFromSoundId(soundId);</syntaxhighlight>=== Required Arguments ===*'''soundId:''' int===Return value===*'''int'''==Example==<syntaxhighlight lang="javascript">todo</syntaxhighlight>==See also=={{Audio_function_c}}[[Category:Clientside API]][[Category:TODO: Example]] | 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== | |||
<syntaxhighlight lang="javascript">audio.getNetworkIdFromSoundId(soundId);</syntaxhighlight> | |||
=== Required Arguments === | |||
*'''soundId:''' int | |||
===Return value=== | |||
*'''int''' | |||
==Example== | |||
<syntaxhighlight lang="javascript"> | |||
todo | |||
</syntaxhighlight> | |||
==See also== | |||
{{Audio_function_c}} | |||
[[Category:Clientside API]] | |||
[[Category:TODO: Example]] | |||
Revision as of 19:54, 6 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
audio.getNetworkIdFromSoundId(soundId);
Required Arguments
- soundId: int
Return value
- int
Example
todo