<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - dofile confusion]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=409&amp;type=atom"/>
	<updated>2012-08-03T23:16:30Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=409</id>
		<entry>
			<title type="html"><![CDATA[Re: dofile confusion]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2246#p2246"/>
			<content type="html"><![CDATA[<p>Thanks! <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[BitPuffin]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1052</uri>
			</author>
			<updated>2012-08-03T23:16:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2246#p2246</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: dofile confusion]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2243#p2243"/>
			<content type="html"><![CDATA[<p>just write doFile one time on top of the main script,<br />then you can call the functions</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-08-03T19:35:18Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2243#p2243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: dofile confusion]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2241#p2241"/>
			<content type="html"><![CDATA[<p>Maybe it&#039;s better to use require?</p>]]></content>
			<author>
				<name><![CDATA[BitPuffin]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1052</uri>
			</author>
			<updated>2012-08-03T17:27:09Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2241#p2241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[dofile confusion]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2240#p2240"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[BitPuffin]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1052</uri>
			</author>
			<updated>2012-08-03T17:24:48Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2240#p2240</id>
		</entry>
</feed>
