<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3APlaySound</id>
	<title>LUA:PlaySound - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3APlaySound"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:PlaySound&amp;action=history"/>
	<updated>2026-07-13T08:28:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:PlaySound&amp;diff=5027&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: PlaySound() = Has the given spawn play the given sound   ==== Syntax ==== PlaySound(param1, param2, param3, param4, param5, [param6])   ==== Parameters ==== ; Re...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:PlaySound&amp;diff=5027&amp;oldid=prev"/>
		<updated>2013-09-12T04:46:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: PlaySound() = Has the given spawn play the given sound   ==== Syntax ==== PlaySound(param1, param2, param3, param4, param5, [param6])   ==== Parameters ==== ; Re...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: PlaySound() =&lt;br /&gt;
Has the given spawn play the given sound&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
PlaySound(param1, param2, param3, param4, param5, [param6])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (string), ''param3'' (float), ''param4'' (float), ''param5'' (float)&lt;br /&gt;
: ''param1'' is the spawn sending the sound&lt;br /&gt;
: ''param2'' is the sound to play&lt;br /&gt;
: ''param3'' is the x coordinate of the sound&lt;br /&gt;
: ''param4'' is the y coordinate of the sound&lt;br /&gt;
: ''param5'' is the z coordinate of the sound&lt;br /&gt;
; Optional - ''param6'' (Spawn)&lt;br /&gt;
: ''param6'' is a specific player to send the sound to&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
    PlaySound(NPC, &amp;quot;blah.mp3&amp;quot;, GetX(NPC), GetY(NPC), GetZ(NPC))&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When hailed the NPC will play the blah.mp3&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
If ''param6'' is not given it will play the sound for all clients in the zone&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>