AmbientSound: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
(Created page with "'''ACS function''' void AmbientSound(str sound, int volume) Starts an ambient sound. Category:ACS") |
No edit summary |
||
Line 1: | Line 1: | ||
''' | {{ACSFunction|description=Starts an ambient sound. | ||
|usage=''void'' '''AmbientSound'''(''str sound'', ''int volume'') | |||
|parameters= | |||
*''sound'': name of sound to play. | |||
*''volume'': volume at which to play the sound. Range is 0-127. | |||
|examples= | |||
[[ | This causes the final boss sound to play in background: | ||
AmbientSound("bossit", 127); | |||
|id=ACC internal | |||
|seealso= | |||
*[[ActivatorSound]]}} |
Latest revision as of 10:52, 21 November 2020
Description[edit]
This is an ACS built-in function.
Starts an ambient sound.
Usage[edit]
void AmbientSound(str sound, int volume)
Parameters[edit]
- sound: name of sound to play.
- volume: volume at which to play the sound. Range is 0-127.
Return value[edit]
Examples[edit]
This causes the final boss sound to play in background:
AmbientSound("bossit", 127);
Notes[edit]
No particular notes.
This function's identification in zspecial.acs
is: ACC internal.