<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Sound Scripts]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=1066</link>
		<description><![CDATA[The most recent posts in Sound Scripts.]]></description>
		<lastBuildDate>Thu, 21 Aug 2014 23:30:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Sound Scripts]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=7227#p7227</link>
			<description><![CDATA[<p>I will update this post with a collection of sound scripts I am working on. </p><p>The first one I made was a script that plays a sound after a number of seconds. This script scared me, because you can&#039;t really anticipate the sound. </p><p>SoundOnTimer:<br /></p><div class="codebox"><pre><code>--TIME--

knock = getObject(&quot;Knock&quot;)
 i = 0

function soundOnTimer(seconds,sound)
    i = i + 1
    t = i/60
    
    if t &gt; seconds then
        playSound(sound)
         i = 0
    end
end

function onSceneUpdate()
        soundOnTimer(10,knock)
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Thu, 21 Aug 2014 23:30:01 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=7227#p7227</guid>
		</item>
	</channel>
</rss>
