Difference between revisions of "ScriptAreaSound"

From Amulets & Armor Wiki
Jump to: navigation, search
Line 28: Line 28:
  
 
[[List of Sounds]]
 
[[List of Sounds]]
 +
 +
 +
----
 +
Back to [[Scripting]] Main Page

Revision as of 21:26, 17 October 2016

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();

See Also

List of Sounds



Back to Scripting Main Page