<- CRPL reference <- SoundCommands

PlaySound

Arguments Result Notation
Name of Sound s1 –

Description

Plays a sound. The list of available sound names can be found in the game by clicking the “Sound” button on the unit editing panel. Here, sounds can be sampled as well.

Note that sounds play asynchronously - multiple sounds can be played at the same time and will overlap, with one limitation - no given sound can be played within 0.1 seconds of itself. When playing sounds in custom maps, take care to select those that fit the action and are not overly annoying.

Names are case sensitive.

Sounds are:

Examples

PlaySound("Explosion0")
#cycle through all the retro sounds
<-num 1 add 27 mod ->num
"Retro" <-num concat PlaySound
60 delay