WoW:API SetView: Difference between revisions

No edit summary
 
m (Move page script moved page API SetView to API SetView without leaving a redirect)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Apparently used to set a camera perspective.
{{wowapi}} __NOTOC__


Example:


/script SetView(1);
Sets a camera perspective from one previously saved with [[API SaveView|SaveView]].
SetView(viewIndex)


This will set your camera to a first-person perspective.


== Arguments ==
:; viewIndex : Number - The view index (1-5) to return to (1 is always first person, and cannot be saved with [[API SaveView|SaveView]])


The values 2,3, and 4 corrospond to various other preset camera positions and angles.
== Returns ==
:nil
 
 
== Details ==
: If [[API SaveView|SaveView]] has not previously been used on the view index, then your camera will be set to a preset position and angle.
: The first view index defaults to first person.

Latest revision as of 04:47, 15 August 2023

WoW API < SetView


Sets a camera perspective from one previously saved with SaveView.

SetView(viewIndex)


Arguments

viewIndex
Number - The view index (1-5) to return to (1 is always first person, and cannot be saved with SaveView)

Returns

nil


Details

If SaveView has not previously been used on the view index, then your camera will be set to a preset position and angle.
The first view index defaults to first person.