LoopSfx

Category: Audio

Back to System Functions


Signature

LoopSfx(sfxReference As Integer, loop As Boolean)

Returns

Void

Description

Starts playback of a loaded sound effect and applies the supplied loop mode.

Pass True to keep the sound effect looping until it is stopped. Pass False to restart it as a one-shot sound.

If the sound effect is already playing, it restarts from the beginning.

Example

LoopSfx(engineSfx, True) LoopSfx(engineSfx, False)