sm.audio
The audio manager is used to play sound effects in the game.
note
warning
Audio is deprecated, use Effects instead.
Functions
play
sm.audio.play( sound, position )
Client-Only
Plays a sound.
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.
Arguments:sound
[ Interactable ]: The name of the sound.position
[ Vec3 ]: The sound position (optional).