<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.prime-wow.com/index.php?action=history&amp;feed=atom&amp;title=AmbientSoundPlay</id>
	<title>AmbientSoundPlay - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.prime-wow.com/index.php?action=history&amp;feed=atom&amp;title=AmbientSoundPlay"/>
	<link rel="alternate" type="text/html" href="https://wiki.prime-wow.com/index.php?title=AmbientSoundPlay&amp;action=history"/>
	<updated>2026-06-07T07:45:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.prime-wow.com/index.php?title=AmbientSoundPlay&amp;diff=10&amp;oldid=prev</id>
		<title>Xordac: Created page with &quot;Starts playing the ambient soundtrack of an area. &lt;nwscript&gt; void AmbientSoundPlay(     object oArea ); &lt;/nwscript&gt; {{DISPLAYTITLE:AmbientSoundPlay(object)}} ===Parameters===...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.prime-wow.com/index.php?title=AmbientSoundPlay&amp;diff=10&amp;oldid=prev"/>
		<updated>2017-05-23T12:10:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Starts playing the ambient soundtrack of an area. &amp;lt;nwscript&amp;gt; void AmbientSoundPlay(     object oArea ); &amp;lt;/nwscript&amp;gt; {{DISPLAYTITLE:AmbientSoundPlay(object)}} ===Parameters===...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Starts playing the ambient soundtrack of an area.&lt;br /&gt;
&amp;lt;nwscript&amp;gt;&lt;br /&gt;
void AmbientSoundPlay(&lt;br /&gt;
    object oArea&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/nwscript&amp;gt;&lt;br /&gt;
{{DISPLAYTITLE:AmbientSoundPlay(object)}}&lt;br /&gt;
===Parameters===&lt;br /&gt;
;oArea&lt;br /&gt;
:The area that should start playing its ambient soundtrack.&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
Starts playing oArea&amp;#039;s ambient soundtrack.&lt;br /&gt;
&lt;br /&gt;
===Remarks===&lt;br /&gt;
Contrast this with [[MusicBackgroundPlay]](), which starts playing the area&amp;#039;s ambient &amp;#039;&amp;#039;music&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
You can change the ambient soundtrack for the area using [[AmbientSoundChangeDay]]() and [[AmbientSoundChangeNight]]().&lt;br /&gt;
&lt;br /&gt;
To stop the soundtrack from playing, use [[AmbientSoundStop]]().&lt;br /&gt;
&lt;br /&gt;
===Version===&lt;br /&gt;
1.22&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;nwscript&amp;gt;&lt;br /&gt;
// A trigger&amp;#039;s OnEvent script:&lt;br /&gt;
void main() &lt;br /&gt;
{&lt;br /&gt;
    // Stop the music.&lt;br /&gt;
    object oArea = GetArea(OBJECT_SELF);&lt;br /&gt;
    MusicBackgroundStop(oArea);&lt;br /&gt;
 &lt;br /&gt;
    // Change the ambient sound settings.&lt;br /&gt;
    AmbientSoundChangeDay     (oArea, 46);  // al_an_lizrdflk1&lt;br /&gt;
    AmbientSoundChangeNight   (oArea, 46);  // al_an_lizrdflk1&lt;br /&gt;
    AmbientSoundPlay          (oArea);      // In case it&amp;#039;s off&lt;br /&gt;
    AmbientSoundSetDayVolume  (oArea, 100); // In case it&amp;#039;s too quiet&lt;br /&gt;
    AmbientSoundSetNightVolume(oArea, 100); // In case it&amp;#039;s too quiet&lt;br /&gt;
 &lt;br /&gt;
    // Start the music up again.&lt;br /&gt;
    DelayCommand(30.0, MusicBackgroundPlay(oArea));&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nwscript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===See Also===&lt;br /&gt;
{| class=&amp;quot;seealso&amp;quot;&lt;br /&gt;
| width=&amp;quot;1px&amp;quot; align=&amp;quot;right&amp;quot; valign=&amp;quot;top&amp;quot; | &amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;functions: &amp;lt;/font&amp;gt;&lt;br /&gt;
|[[AmbientSoundChangeDay]], [[AmbientSoundChangeNight]], [[AmbientSoundStop]]&lt;br /&gt;
|}&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;author: Iskander Merriman&amp;lt;/font&amp;gt;&lt;br /&gt;
[[Category:Functions]]&lt;br /&gt;
[[Category:Area_Functions]]&lt;br /&gt;
[[Category:Sound_Effects_Functions]]&lt;/div&gt;</summary>
		<author><name>Xordac</name></author>
	</entry>
</feed>