contents.gifindex.gifprev1.gifnext1.gif

pueblo00000000.gif TinTin #playsound command

This command will play the specified Windows sound file. The single parameter to the command is the name of the file to play. The file must be a wave file (these usually end in the extension ‘.wav’.)

Example

The following code will play a sound whenever the text ‘hits you’ is sent by the world:

#action {hits you} {#playsound {c:\sounds\ouch.wav}}

Note: It is very important to enclose the file name in curly braces. If you don’t, then the backslashes in the path will be interpreted as character escapes.