play sound

play sound (string file, boolean wait, boolean loop)

Plays a sound file (WAV or MP3 format), which must be in the same directory as the game file. If the parameter wait is “true”, the script will stop until the sound has finished. If the parameter loop is “true”, the sound will loop.