<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - dofile function]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=773&amp;type=atom"/>
	<updated>2013-09-11T10:28:32Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=773</id>
		<entry>
			<title type="html"><![CDATA[Re: dofile function]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4948#p4948"/>
			<content type="html"><![CDATA[<p>It helps alot , thank you , thank you , thank you.</p>]]></content>
			<author>
				<name><![CDATA[Riddikk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2448</uri>
			</author>
			<updated>2013-09-11T10:28:32Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4948#p4948</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: dofile function]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4943#p4943"/>
			<content type="html"><![CDATA[<p>Let&#039;s say you have 2 script in the same folder :<br />script_A.lua<br />script_B.lua</p><p>In your script_A, put at the top :<br /></p><div class="codebox"><pre><code>dofile(&quot;script_B.lua&quot;)</code></pre></div><p>Then if you have a function in script_B :</p><div class="codebox"><pre><code>function Whatever()
    --dosomethinghere
end</code></pre></div><p>Use it like that in script_A :</p><div class="codebox"><pre><code>function onSceneUpdate()
    Whatever() -- function from script_B
end</code></pre></div><p>Hope it helps</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2013-09-10T23:57:34Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4943#p4943</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[dofile function]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4942#p4942"/>
			<content type="html"><![CDATA[<p>Hello , can some one please explain to me how to use the dofile function.<br />I followed the example on the wiki but the script doesn&#039;t load .</p>]]></content>
			<author>
				<name><![CDATA[Riddikk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2448</uri>
			</author>
			<updated>2013-09-10T23:17:20Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4942#p4942</id>
		</entry>
</feed>
