SetSfxPan

Category: Audio

Back to System Functions


Signature

SetSfxPan(sfxReference As Integer, pan As Float)

Returns

Void

Description

Sets the stereo pan of a loaded sound effect.

Use -1.0 for full left, 0.0 for center, and 1.0 for full right. Values outside that range are clamped.

Example

SetSfxPan(jumpSfx, -0.5)