GetCamera
From King Arthur's Gold Wiki
Returns a reference to the CCamera object.
CCamera@ getCamera()
Example from Entities/Common/Scripts/StandardControls.as:
f32 zoomSpeed = 0.25f; f32 maxZoom = 2.0f; switch (zoomLevel) { case 1: getCamera().targetDistance += zoomSpeed; break; case 2: getCamera().targetDistance -= zoomSpeed; break; default: getCamera().targetDistance = 1.0f; break; }