Audio::setStaticEmitterEnabled: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Example:<br>AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_01_STAGE', false); AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_02_MAIN_ROOM', false); AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_03_BACK_ROOM', false);<br><br>This turns off surrounding sounds not connected directly to peds. <br><br>
Example:<br>AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_01_STAGE', false); AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_02_MAIN_ROOM', false); AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_03_BACK_ROOM', false);<br><br>This turns off surrounding sounds not connected directly to peds. <br><br>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">audio.setStaticEmitterEnabled(emitterName, toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.setStaticEmitterEnabled(emitterName, toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''emitterName:''' String
*'''emitterName:''' String
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Audio_function_c}}
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:04, 6 May 2017

Example:
AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_01_STAGE', false); AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_02_MAIN_ROOM', false); AUDIO::SET_STATIC_EMITTER_ENABLED((Any*)'LOS_SANTOS_VANILLA_UNICORN_03_BACK_ROOM', false);

This turns off surrounding sounds not connected directly to peds.

Syntax

mp.game.audio.setStaticEmitterEnabled(emitterName, toggle);

Required Arguments

  • emitterName: String
  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also