<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Scripts!]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=159&amp;type=atom"/>
	<updated>2011-09-12T17:49:55Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=159</id>
		<entry>
			<title type="html"><![CDATA[Re: Scripts!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=609#p609"/>
			<content type="html"><![CDATA[<p>From the main scene script, it is not possible to get the objects from overlay scene. Since only one script run at a time, it would be nice if the objects of overlay scene could also be able to get from the main script to change its property!</p><p>Regards</p>]]></content>
			<author>
				<name><![CDATA[Arclord]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=211</uri>
			</author>
			<updated>2011-09-12T17:49:55Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=609#p609</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Scripts!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=607#p607"/>
			<content type="html"><![CDATA[<p>Hi, there is only one script running at a time, the only way to share lua functions<br />is to create a separate lua file and use &quot;dofile(&quot;customFunctions.lua&quot;)&quot; to link it.</p><p>But for sharing variables it&#039;s not possible without doing c++, I taught I did something but I probably forget,<br />lets add it to the script todo list.</p><p>If you create a dll plugin, there is 2 ways to share variables :</p><p>- create a custom behavior with some variables, you can then get/set these variables from script using :<br />getBehaviorVariable(object, behaviorId, « variableName »)<br />setBehaviorVariable(object, behaviorId, « variableName », value)</p><p>- create custom script functions using MScriptContext :<br /><a href="http://www.maratis3d.org/engine_docs/class_m_script_context.html">http://www.maratis3d.org/engine_docs/cl &#133; ntext.html</a></p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-09-12T15:31:36Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=607#p607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Scripts!]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=604#p604"/>
			<content type="html"><![CDATA[<p>Hi,<br />&nbsp; &nbsp;Suppose, if I have two scenes with two defferent scripts. One for each level. Say, the second one is HUD overlay. Can I call functions or send/receive values between this two script files? <br />&nbsp; Also, same like for script and dll. send receive values?</p><p>&nbsp; &nbsp;Thanks<br />&nbsp; &nbsp;Regards</p>]]></content>
			<author>
				<name><![CDATA[Arclord]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=211</uri>
			</author>
			<updated>2011-09-12T12:15:00Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=604#p604</id>
		</entry>
</feed>
