Rotates the camera around the player
See also Camera functions.
Signature:
FlipCameraYaw(degrees)
Arguments:
degrees- The number of degrees to rotate; positive for counter-clockwise, negative for clockwise. (number)
Examples:
-- Dramatically Rotate the camera 360 degrees around the player
if not YawFrame then CreateFrame("Frame", "YawFrame") end
local degree = 0
local function OnUpdate(self, elapsed)
degree = degree + 1
FlipCameraYaw(1)
if degree >= 360 then
self:Hide()
end
end
YawFrame:SetScript("OnUpdate", OnUpdate)
YawFrame:Show()