Quantcast
WoWInterface - View Single Post - PlayerModel:SetTransform bug
View Single Post
09-22-19, 08:54 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,439
Have you tried to delay the set so the game has time to "get ready". Something like:

Lua Code:
  1. local frame = CreateFrame("PlayerModel", nil, UIParent, nil)
  2. frame:SetSize(500, 500)
  3. frame:SetPoint("CENTER", UIParent, "CENTER")
  4. frame:SetScript("OnEvent", function(self)
  5.     self:UnregisterAllEvents()
  6.     self:SetModel(1087046)
  7.     self:SetTransform(0.1025, 0.1025, 0, 0, 0, 0, 0.1)
  8. end)
  9. frame:RegisterEvent("PLAYER_ENTERING_WORLD")
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote