WoW:API CameraZoomOut: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Move page script moved page API CameraZoomOut to API CameraZoomOut without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wowapi}}
<center>'''CameraZoomOut'''</center>
<center>'''CameraZoomOut'''</center>


Line 9: Line 10:


=== Returns ===
=== Returns ===
:<i>nil</i>
:''nil''




== Details ==
== Details ==
: Zooms the camera out of the viewplane by <i>increment</i>.  The increment must be between 0.0 and 5.0 with 0.0 indicating no zoom relative to current view and 5.0 being maximum zoomFrom a completely zoomed in position (first person), an increment of 5.0 will result in a completely zoomed out angle.
: Zooms the camera out of the viewplane by ''increment''.  The increment must be between 0.0 and the ''max camera distance''.  As of patch 1.9.0 if the 'Interface Options > Advanced Options > Max Camera Distance' setting is set to Low, then the largest value for increment is 15. If this setting is set to High, then the largest value for increment is 30You can test for the ''max camera distance'' by zooming in to first person and counting the number of times you can call this function with ''increment'' set to 1.0 and still zoom out.
 
(Seems you can zoom out to 50 now - this may have been added in a later patch)
----
----
__NOTOC__
__NOTOC__
{{WoW API}}

Latest revision as of 04:45, 15 August 2023

WoW API < CameraZoomOut

CameraZoomOut

Zooms the camera out of the viewplane

CameraZoomOut(increment)

Parameters[edit]

Arguments[edit]

(float increment)

Returns[edit]

nil


Details[edit]

Zooms the camera out of the viewplane by increment. The increment must be between 0.0 and the max camera distance. As of patch 1.9.0 if the 'Interface Options > Advanced Options > Max Camera Distance' setting is set to Low, then the largest value for increment is 15. If this setting is set to High, then the largest value for increment is 30. You can test for the max camera distance by zooming in to first person and counting the number of times you can call this function with increment set to 1.0 and still zoom out.