User Tools

Site Tools


prpl:playsound

<- PRPL reference <- Everything Else 2

PlaySound

ArgumentsResultNotation
string none [ s1 - ]

Description

Plays the sound effect s1 from a predefined set of sounds. The stock sounds available are identical to those in Creeper World 3 (see CRPL's PlaySound for the list), excluding CW3's unit-specific sounds. Note that unlike in CRPL, these names are case-sensitive.

Two additional sounds are available in Particle Fleet: “JumpIn” and “JumpOut”. More may become available in the future.

Examples

# Play the sound "Misc8" every time the spacebar is pressed
if("Space" GetKeyDown)
    PlaySound("Misc8")
endif
	CustomSounds.Play(GetStringFromStack()); 
 
prpl/playsound.txt · Last modified: 2017/10/30 18:07 by GameGibu