WoW:API CameraZoomIn: Difference between revisions

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


Zooms the camera into the viewplane
Zooms the camera into the viewplane
Line 9: Line 9:


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




== Details ==
== Details ==
: Zooms the camera into 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 zoom.  From a completely zoomed out position, an increment of 5.0 will result in a first person camera angle.
: Zooms the camera into the viewplane by ''increment''.  The increment must be between 0.0 and 50 with 0.0 indicating no zoom relative to current view and 50 being maximum zoom.  From a completely zoomed out position, an increment of 50 will result in a first person camera angle.




: 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.
: 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.  With /console [[CVar_cameraDistanceMaxFactor]] the maximum value is 50.
----
----
__NOTOC__
__NOTOC__
{{WoW API}}

Latest revision as of 04:45, 15 August 2023

WoW API < CameraZoomIn

Zooms the camera into the viewplane

CameraZoomIn(increment)

Parameters[edit]

Arguments[edit]

(float increment)

Returns[edit]

nil


Details[edit]

Zooms the camera into the viewplane by increment. The increment must be between 0.0 and 50 with 0.0 indicating no zoom relative to current view and 50 being maximum zoom. From a completely zoomed out position, an increment of 50 will result in a first person camera angle.


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. With /console CVar_cameraDistanceMaxFactor the maximum value is 50.