ChangeCurrentCamera
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | Change a scene current camera | + | {{lua-function|changeCurrentCamera|object}} |
+ | |||
+ | Change a scene current camera. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
-- current scene | -- current scene | ||
Camera = getObject("Camera") | Camera = getObject("Camera") | ||
changeCurrentCamera(Camera) | changeCurrentCamera(Camera) | ||
− | + | ||
-- other scene | -- other scene | ||
scene2 = getScene("scene2") | scene2 = getScene("scene2") |
Latest revision as of 00:05, 9 February 2014
changeCurrentCamera(object)
Change a scene current camera.
-
object
: object to operate on
-- current scene Camera = getObject("Camera") changeCurrentCamera(Camera) -- other scene scene2 = getScene("scene2") scene2Camera = getObject(scene2, "Camera") changeCurrentCamera(scene2, scene2Camera)