IsSoundPanningEnabled

From Multi Theft Auto: Wiki
Revision as of 09:02, 5 April 2013 by Kris Andre (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

  • theSound : A valid sound element.

Returns

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

Requirements

This template will be deleted.

See Also