Name Sound
Type Method
Summary Plays a sound
Prototype long Sound(BSTR SoundFileName);
Description This plays the specified sound file, allowing you to add sound-effects to your world.
VBscript example
world.sound "ding.wav"
Jscript example
world.Sound("ding.wav");
PerlScript example
$world->Sound("ding.wav");
Returns eNoNameSpecified: no sound file name given
eCannotPlaySound: cannot play that file
eOK: completed OK