Skip to content

PlaySfx

Description

Plays the sound effect in the given slot in the GameConfig, looping it if set to do so.

Parameters

  • SFX The slot of the sound effect in the GameConfig.
  • Loop Determines whether or not the sound effect should loop.

Return Value

None.

Syntax

PlaySfx(int SFX, bool Loop)

Example

PlaySfx(0, false)