<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3ASmartSound</id>
	<title>Lua:SmartSound - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3ASmartSound"/>
	<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:SmartSound&amp;action=history"/>
	<updated>2026-05-08T20:30:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://www.fortress-forever.com/wiki/index.php?title=Lua:SmartSound&amp;diff=9011&amp;oldid=prev</id>
		<title>Crazycarl: New page: {{Infobox manual/Header}} ==SmartSound==  Plays one sound for a specified player, another for that player&#039;s teammates, and another for the other team(s).  ===Usage=== &lt;pre&gt;SmartSound(playe...</title>
		<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:SmartSound&amp;diff=9011&amp;oldid=prev"/>
		<updated>2009-05-11T21:57:55Z</updated>

		<summary type="html">&lt;p&gt;New page: {{Infobox manual/Header}} ==SmartSound==  Plays one sound for a specified player, another for that player&amp;#039;s teammates, and another for the other team(s).  ===Usage=== &amp;lt;pre&amp;gt;SmartSound(playe...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox manual/Header}}&lt;br /&gt;
==SmartSound==&lt;br /&gt;
&lt;br /&gt;
Plays one sound for a specified player, another for that player&amp;#039;s teammates, and another for the other team(s).&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
&amp;lt;pre&amp;gt;SmartSound(player, playersound, teamsound, otherteamsound)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Input===&lt;br /&gt;
* player(CFFPlayer) A player (such as the one who just grabbed a flag)&lt;br /&gt;
* playersound(string) Sound to play for the player&lt;br /&gt;
* teamsound(string) Sound to play for the player&amp;#039;s team&lt;br /&gt;
* otherteamsound(string) Sound to play for the other team(s)&lt;br /&gt;
&lt;br /&gt;
Use an entry from one of the game_sounds files in Fortressforever\scripts\. All sounds used by lua should be [[Lua:Precache|precached]].&lt;br /&gt;
&lt;br /&gt;
===Output===&lt;br /&gt;
Returns: nothing.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;pre&amp;gt;SmartSound(player, &amp;quot;yourteam.flagstolen&amp;quot;, &amp;quot;yourteam.flagstolen&amp;quot;, &amp;quot;otherteam.flagstolen&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Commands]]&lt;br /&gt;
[[Category:Messages]]&lt;br /&gt;
{{Infobox manual/Footer}}&lt;/div&gt;</summary>
		<author><name>Crazycarl</name></author>
	</entry>
</feed>