<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Why isn't this clone script working?[solved]]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=922</link>
		<description><![CDATA[The most recent posts in Why isn't this clone script working?[solved].]]></description>
		<lastBuildDate>Thu, 30 Jan 2014 00:30:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Why isn't this clone script working?[solved]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6286#p6286</link>
			<description><![CDATA[<p>This small script works very well. I can clone a bunch of objects and it still runs fast. Perhaps I will start posting some code snippets.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Thu, 30 Jan 2014 00:30:47 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6286#p6286</guid>
		</item>
		<item>
			<title><![CDATA[Why isn't this clone script working?[solved]]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6284#p6284</link>
			<description><![CDATA[<div class="codebox"><pre><code>man=getObject(&quot;Man&quot;)
manPosition = getPosition(&quot;Man&quot;)
marker = getObject(&quot;Marker&quot;)


function setMarker()
    if isKeyPressed(&quot;M&quot;) then
        markerClone = getClone(marker)
        setPosition(markerClone,{manPosition[1],manPosition[2] -10 ,manPosition[3]})
    end
end</code></pre></div><p>It keeps freezing. The setMarker() function is called under the onSceneUpdate() function.</p><p>Edit: Nevermind, I got it working:<br /></p><div class="codebox"><pre><code>function offsetClone(object,offset)
    if onKeyUp(&quot;O&quot;) then
        objectPosition = getPosition(object)
        objectClone = getClone(object)
        setPosition(objectClone,{objectPosition[1] ,objectPosition[2] + offset,objectPosition[3]})
    end
end</code></pre></div><p>This is also called under the onSceneUpdate() function. I changed it to onKeyUp() so that objects wouldn&#039;t be continuously spawning while the key is held.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Wed, 29 Jan 2014 23:58:50 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6284#p6284</guid>
		</item>
	</channel>
</rss>
