LocalAmbientSound

void LocalAmbientSound(str sound, int volume);

Usage

Plays a sound at world volume (can be heard at the same volume no matter where the player stands) that is only heard by the activator of the script. Volume is an integer ranging from 0 to 127, with 127 being full volume and 0 being muted.

Examples

Script 1 ENTER
{
  LocalAmbientSound("QTalk", 127); //Plays a sound at full volume that is only heard by the activator
  Print(s:"Welcome to Hell");
}

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.