From ZDoom Wiki
Jump to navigation Jump to search
Note: This function has been superseded by PlaySound, which duplicates and extends its functionality. Use of the newer function is advised in order to maintain maximum flexibility in your code.

void ActivatorSound(str sound, int volume);


Plays a sound from whoever activated the script (be it a monster, the player or projectile).


  • sound: The sound to be played, as defined in SNDINFO.
  • volume: An integer range from 0 to 127, with 127 being full volume and 0 being muted.


 script 4 (void) {
   print(s:"Sounds like you got something!");

See also