If you just want the set the current camera zoom level, can't you just do this
Lua Code:
local function SetCameraZoom(level)
local zoom = GetCameraZoom()
local delta = zoom-level
if delta > 0 then
CameraZoomIn(delta)
else
CameraZoomOut(-delta)
end
end