PlaySound

Description

Play the sound previously loaded into the specified sound number. This command can be called multiple times for the same sound ID and it will start multiple copies of that sound playing as instances. The command will return an instance ID that can be used to interact with this instance whilst it is still playing. When an instance stops playing then it is automatically deleted and can no longer be referenced. By default the sound is not looped.

Definition

integer PlaySound( iID, iVol )

integer PlaySound( iID, iVol, iLoop )

integer PlaySound( iID, iVol, iLoop, iPriority )

integer PlaySound( iID )

Parameters