Sound play

From Sim Innovations Wiki
Jump to navigation Jump to search

Description

sound_play(sound_id)

sound_play is used to play a previously loaded sound. The sound will be played once.

Return value

This function won't return a value.

Arguments

# Argument Type Description
1 sound_id Number Sound id received from the sound_add function.

Example

-- Load sounds
mysound1 = sound_add("mysound1.wav")

-- Play the sound
sound_play(mysound1)