Audio::setStaticEmitterEnabled: Difference between revisions
(yay) |
(yay) |
||
| 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>==Syntax==<syntaxhighlight lang="javascript">audio.setStaticEmitterEnabled(emitterName, toggle);</syntaxhighlight>=== Required Arguments ===*'''emitterName:''' String*'''toggle:''' Boolean===Return value===*'''Undefined'''==Example==<syntaxhighlight lang="javascript">todo</syntaxhighlight>==See also=={{Audio_function_c}}[[Category:Clientside API]][[Category:TODO: Example]] | 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== | |||
<syntaxhighlight lang="javascript">audio.setStaticEmitterEnabled(emitterName, toggle);</syntaxhighlight> | |||
=== Required Arguments === | |||
*'''emitterName:''' String | |||
*'''toggle:''' Boolean | |||
===Return value=== | |||
*'''Undefined''' | |||
==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
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
audio.setStaticEmitterEnabled(emitterName, toggle);
Required Arguments
- emitterName: String
- toggle: Boolean
Return value
- Undefined
Example
todo