bool PlaySound(string)
Return Type: bool
Parameters: string WavPath
Description:
PlaySound plays the .wav file specified by WavPath. Script execution
will continue immediately after the call, without waiting for the .wav
file to finish playing.
PlaySound will play a system-defined default sound if the sound file
specified by WavPath is not found. It will still return true if this
is the case. Sound files should be less than 100KB in size.
This function returns true if the sound was played successfully, false
otherwise.
Example
Code |
PlaySound("sample.wav"); |