IsSoundPanningEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|4.0140|1.3.0|4162| This function gets the panning state from a sound element. }} ==Syntax== <syntaxhighlight lang="lua"> bool isSoundP...")
 
No edit summary
Line 19: Line 19:


===Required Arguments===  
===Required Arguments===  
*'''theSound :''' A valid sound element.
*'''theSound :''' A valid [[sound]] [[element]].


===Returns===
===Returns===

Revision as of 09:06, 5 April 2013

ADDED/UPDATED IN VERSION 1.3.0 r4162:

This function gets the panning state from a sound element.

Syntax

bool isSoundPanningEnabled ( element theSound )

Example Function

function testCall()
	local sound = playSound("xy.mp3")
	local soundPanning = isSoundPanningEnabled(sound)
end

Required Arguments

Returns

Returns true whether the sound swings, false if it does not.

Requirements

Minimum server version n/a
Minimum client version 1.3.0-9.04162

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.04162" />

See Also

Shared