ActivatorSound

From ZDoom Wiki

Jump to: navigation, search

void ActivatorSound(str sound, int volume);

Plays a sound from whoever activated the script (be it a monster, the player or projectile). Volume is an integer range from 0 to 127 with 127 being full volume and 0 being muted.

Example

 script 4( void ) {
   ActivatorSound("misc/i_pkup",127);
   print(s:"Sounds like you got something!");
 }

See also

Predefined Sounds

Personal tools