Difference between revisions of "ScriptAreaSound"
From Amulets & Armor Wiki
PeeWeeRotA (Talk | contribs) |
PeeWeeRotA (Talk | contribs) |
||
Line 24: | Line 24: | ||
End(); | End(); | ||
</nowiki> | </nowiki> | ||
+ | |||
+ | === See Also === | ||
+ | |||
+ | [[List of Sounds]] |
Revision as of 00:14, 2 November 2015
AreaSound( [SoundNum], [x], [y], [Radius], [volume])
Plays a sound at the specified location to anyone within the radius.
Arguments
SoundNum - The object id of the sound to be played. Can be found in the PICS.RES file.
X - X location on map. Found in status bar when using 2d view in Doom Builder 2.
Y - Y location on map. Found in status bar when using 2d view in Doom Builder 2.
Radius - Maximum distance from sound object to be audible. (Max: 32767)
Volume - Volume at closest point to sound being played. The in-game volume lowers based on distance. (Max 255)
Example
40: // open exit door with switch ChangeSideTexture(1636,"SWIT1U"); AreaSound(6007,-16,516,300,255); SlideCeilingNice(129, 0, 120, 50, -1); End();