LocalAmbientSound
From Eternity Wiki
Jump to navigationJump to search
Description
This is an ACS built-in function.
Starts an ambient sound that can only be heard by the activator, normally a player.
Usage
void LocalAmbientSound(str sound, int volume)
Parameters
- sound: name of sound to play.
- volume: volume of sound to play, range 0-127.
Return value
Examples
This causes the final boss chant to be heard in activator's head. Other players won't hear it:
LocalAmbientSound("bossit", 127);
Notes
This effect is "local" to the activator. Only the activator will hear the sound. Given that currently only players can listen to sounds, this function only makes sense if triggered by a player.
This function's identification in zspecial.acs
is: ACC internal.