WoW:API SetView: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded deprecated template)
(Updated to match the current API boilerplate.)
Line 1: Line 1:
{{wowapi}}
{{wowapi}} __NOTOC__
Used to set a camera perspective.


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, assuming this has not been modified by use of [[API SaveView |SaveView]].


== Arguments ==
:; viewIndex : Number - The view index (1-4) to return to


The values 2, 3, and 4 correspond 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.

Revision as of 13:23, 27 June 2007

WoW API < SetView


Sets a camera perspective from one previously saved with SaveView.

SetView(viewIndex)


Arguments

viewIndex
Number - The view index (1-4) to return to


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.