MoveViewOutStart

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

Begins zooming the camera out.

 MoveViewOutStart(speed)

Arguments

speed
number - Speed at which to begin zooming.

Returns

Nothing

Example

 MoveViewOutStart(5/tonumber(GetCVar("cameraZoomSpeed"))) -- zoom the camera out at 5 increments/second

Details

  • Speed is a multiplier on the CVar 'cameraZoomSpeed', which is in increments/second. A zoom increment appears to be about a yard from the character.
  • If speed is omitted, it is assumed to be 1.0.
  • Negative numbers go the opposite way, a speed of 0.0 will stop it.
  • This is not canceled by moving your character, but is canceled by using the mousewheel to zoom.
  • Applying a negative speed is not the same as using the other function to go the opposite way, both vectors are applied simultaneously. If you zoom both ways equally, it will appear to stop, but the rotations are still being applied, though canceling each other.