getSoundPan
Client
Returns the pan of a sound with no position.
float|false getSoundPan(sound sound)
Parameters
| Name | Type | Description |
|---|---|---|
| sound | sound | The sound element, or a dui element for the browser's sound. |
Returns
A value from -1 (left) to 1 (right), or false if the sound is 3D or was not found.
Example
outputDebugString("Pan: " .. getSoundPan(beep))