Commands: sounds
Legend
X - X is a number'X' - X is a string (a letter/word/text)
[X=0] - X is an optional parameter with value 0 when omitted (NEVER add [] to your script!)
channelplaying(CHANNEL)
| Parameters: | CHANNEL - sound channel from 0 to 9 |
| Returns: | PLAYING - 1 if sound is still playing, else 0 |
Returns 1 if there is a sound playing in this channel or 0 if there is no sound playing.
playsound(SOUND, [CHANNEL=-1])
| Parameters: | SOUND - sound ID [CHANNEL=-1] - channel for sound control, 0 to 9, or -1 for no channel |
Plays a sound.
You can also use one of 10 channels (0-9) which allows you to check when the playback is finished and to stop the sound. Use -1 as CHANNEL if you do not want to use a channel.
You can also use one of 10 channels (0-9) which allows you to check when the playback is finished and to stop the sound. Use -1 as CHANNEL if you do not want to use a channel.
stopchannel(CHANNEL)
| Parameters: | CHANNEL - sound channel from 0 to 9 |
Stops the playback of a sound in a channel.