sm.audio.play

Plays a sound.

Kind: Function

Environments: Game

Game

sm.audio.play( sound, position )

Open the full Game reference

Availability: Client only

If position is specified, the sound will play at the given coordinates in the world. Otherwise, the sound will play normally.

For a list of available sounds to play, see sm.audio.soundList.

Parameters:

Name Type Description
sound string The sound to play.
position (optional) Vec3 The world position of the sound. (Optional)