LocalAmbientSound

From Eternity Wiki
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Starts an ambient sound that can only be heard by the activator, normally a player.

Usage[edit]

void LocalAmbientSound(str sound, int volume)

Parameters[edit]

  • sound: name of sound to play.
  • volume: volume of sound to play, range 0-127.

Return value[edit]

Examples[edit]

This causes the final boss chant to be heard in activator's head. Other players won't hear it:

LocalAmbientSound("bossit", 127);

Notes[edit]

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.

See also[edit]