LocalAmbientSound

From ZDoom Wiki
Jump to navigation Jump to search

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");
}