Quantcast
WoWInterface - View Single Post - Show frost mage icicle as part of UI
View Single Post
11-10-18, 08:21 AM   #7
Ethly
A Fallenroot Satyr
Join Date: Mar 2018
Posts: 23
I have troubles rotating model over Z axe. Here's my code to show icicle:

Code:
local frame = CreateFrame("PlayerModel", "IciclesFrame", nil);
frame:SetAllPoints();
frame:SetModel("spells/cfx_mage_iciclemastery_launchedmissile");
frame:SetFacing(math.pi / 2);
SetFacing method rotates model over Y axe. But I want to rotate it over Z axe as well. I tried to use custom camera, but it doesn't work for me, it errors with message "IciclesFrame is not using a custom camera.". What's interesting is that if I'm using "Creature/Arthaslichking/arthaslichking.m2" model, custom camera seems to work.
  Reply With Quote