setCamera Question
Posted: Sat Aug 06, 2016 11:38 am
Hi All,
just wondering about how setCamera works... (how to correctly reference other cameras too?)
Ive checked this thread .... ....and seen GameMode:setCamera(nil) will return the camera to the party view point... but no luck
Ive just added a Camera Component to a (light) Object
The onInit works fine, changed the camera... but cant change back??
just wondering about how setCamera works... (how to correctly reference other cameras too?)
Ive checked this thread .... ....and seen GameMode:setCamera(nil) will return the camera to the party view point... but no luck
Ive just added a Camera Component to a (light) Object
SpoilerShow
Code: Select all
{
class = "Camera",
name = "camera",
--fov = 100,
--nearClip = 0.1,
--farClip = 100,
onInit = function(self)
GameMode.setCamera(self)
end,
--onUpdate = function(self)
--print("cam update")
--end,
},