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.