<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - dofile confusion]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=409</link>
		<description><![CDATA[The most recent posts in dofile confusion.]]></description>
		<lastBuildDate>Fri, 03 Aug 2012 23:16:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: dofile confusion]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2246#p2246</link>
			<description><![CDATA[<p>Thanks! <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (BitPuffin)]]></author>
			<pubDate>Fri, 03 Aug 2012 23:16:30 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2246#p2246</guid>
		</item>
		<item>
			<title><![CDATA[Re: dofile confusion]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2243#p2243</link>
			<description><![CDATA[<p>just write doFile one time on top of the main script,<br />then you can call the functions</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 03 Aug 2012 19:35:18 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2243#p2243</guid>
		</item>
		<item>
			<title><![CDATA[Re: dofile confusion]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2241#p2241</link>
			<description><![CDATA[<p>Maybe it&#039;s better to use require?</p>]]></description>
			<author><![CDATA[dummy@example.com (BitPuffin)]]></author>
			<pubDate>Fri, 03 Aug 2012 17:27:09 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2241#p2241</guid>
		</item>
		<item>
			<title><![CDATA[dofile confusion]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2240#p2240</link>
			<description><![CDATA[<p>I have a question regarding dofile. I heard that you couldn&#039;t have more than one script in a scene which is a bit sad for me but I guess it&#039;s alright if you can do dofile (it actually saves time so you don&#039;t have to keep adding all the scripts to a scene).</p><p>The only problem is that (I think) when you call it it will run all the code in the script. I only want to run the general stuff once so that memory is allocated and variables have an initial value etc and a value is kept until the next time (say, velocity) and not have it reset every time. So I was thinking maybe there was a way to first call dofile. And then call a function (update) in every file that I want to update. How would I approach this? Or maybe it works that way even if I do dofile over and over again? I&#039;m a bit rusty with the Lua <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (BitPuffin)]]></author>
			<pubDate>Fri, 03 Aug 2012 17:24:48 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2240#p2240</guid>
		</item>
	</channel>
</rss>
