Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API Model SetCamera

Last wiki revision 2023-08-19

Selects a predefined camera. Model:SetCamera(cameraIndex)

  • cameraIndex: - The camera to select (0, 1 or 2).

There are 3 known pre-defined camera views.

  • Camera 0 (facial) is non movable. It only views the face (used by the system when it creates portrait pictures).
  • Camera 1 (frontal body view) can be rotated. Used by dressing room, character view and such like.
  • Camera 2 (or in fact, any number other than 0 or 1) can be freely moved.

myModel:SetCamera(0); -- Selects facial camera myModel:SetCamera(1); -- Selects front view full body camera myModel:SetCamera(2); -- Selects camera at 0,0,0 (movable)

Source

https://warcraft.wiki.gg/wiki/API_Model_SetCamera · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.