IsAmbientSoundEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{Needs Example}}
This function allows you to check if some background sound effects are enabled.
This function allows you to check if some background sound effects are enabled.



Revision as of 21:47, 7 May 2017

Accessories-text-editor.png Script Example Missing Function IsAmbientSoundEnabled needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function allows you to check if some background sound effects are enabled.

Syntax

bool isAmbientSoundEnabled( string theType )

Required Arguments

  • theType: The type of ambient sound to test. Can be either "gunfire" or "general".

Returns

Returns true if the ambient sound is enabled, false if it is disabled or invalid values were passed.

See Also