WoW:API SetView: Difference between revisions
(Updated to match the current API boilerplate.) |
m (Move page script moved page API SetView to API SetView without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 7: | Line 7: | ||
== Arguments == | == Arguments == | ||
:; viewIndex : Number - The view index (1- | :; viewIndex : Number - The view index (1-5) to return to (1 is always first person, and cannot be saved with [[API SaveView|SaveView]]) | ||
== Returns == | == Returns == | ||
Latest revision as of 04:47, 15 August 2023
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.