GetCameraZoom

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 7.0.3 / 1.13.2

Returns the current zoom level of the camera.

zoom = GetCameraZoom()

Returns

zoom
number - the currently set zoom level

Details

Doesn't take camera collisions with the environment into account and will return what the camera would be at. If the camera is in motion, the zoom level that is set that frame is used, not the zoom level that the camera is traveling to.