Quantcast
WoWInterface - View Single Post - Camera Zoom script
View Single Post
10-02-20, 01:29 PM   #2
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 962
If you just want the set the current camera zoom level, can't you just do this
Lua Code:
  1. local function SetCameraZoom(level)
  2.     local zoom = GetCameraZoom()
  3.     local delta = zoom-level
  4.     if delta > 0 then
  5.         CameraZoomIn(delta)
  6.     else
  7.         CameraZoomOut(-delta)
  8.     end
  9. end
  Reply With Quote