<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - changeCurrentCamera help]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=399&amp;type=atom"/>
	<updated>2012-07-26T06:28:58Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=399</id>
		<entry>
			<title type="html"><![CDATA[Re: changeCurrentCamera help]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2178#p2178"/>
			<content type="html"><![CDATA[<p>This worked! Thanks for the help.</p>]]></content>
			<author>
				<name><![CDATA[Almighty Laxz]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1037</uri>
			</author>
			<updated>2012-07-26T06:28:58Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2178#p2178</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: changeCurrentCamera help]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2177#p2177"/>
			<content type="html"><![CDATA[<p>did you declare the objects with getObject ?</p><div class="codebox"><pre><code>-- get objects
Camera1 = getObject(&quot;Camera1&quot;)
Camera2 = getObject(&quot;Camera2&quot;)

-- scene update
function onSceneUpdate()

    if onKeyDown(&quot;B&quot;) then
         changeCurrentCamera(Camera2)
    elseif onKeyDown(&quot;C&quot;) then
         changeCurrentCamera(Camera1)
    end

end</code></pre></div>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-07-25T12:04:45Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2177#p2177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[changeCurrentCamera help]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2176#p2176"/>
			<content type="html"><![CDATA[<p>So i&#039;m trying to get the camera on my player to change when a certain key is pressed. I have 2 cameras set up on it, Camera0 and Camera1. <br />&nbsp; &nbsp; if isKeyPressed(&quot;C&quot;) then<br />&nbsp; &nbsp; changeCurrentCamera(Camera1)<br />&nbsp; &nbsp; end<br />I&#039;m new to lua so i&#039;m not sure why this code won&#039;t work.</p>]]></content>
			<author>
				<name><![CDATA[Almighty Laxz]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1037</uri>
			</author>
			<updated>2012-07-25T11:06:53Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2176#p2176</id>
		</entry>
</feed>
