[DiscordArchive] Anyone know how I'd be able to fix this?
[DiscordArchive] Anyone know how I'd be able to fix this?
Archived author: A2 • Posted: 2022-05-09T00:49:30.914000+00:00
Original source
```lua
function P3D(path)
local frame = CreateFrame("Frame", nil, UIParent)
local model = CreateFrame("PlayerModel", nil, frame)
frame:SetPoint("Center", 250, 10)
frame:SetSize(512, 512)
frame:SetBackdrop({
bgFile = "Interface/DialogFrame/UI-DialogBox-Background-Dark",
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
edgeSize = 16,
insets = { left = 4, right = 4, top = 4, bottom = 4 },
})
model:SetAllPoints(frame)
model:SetFacing(1)
model:SetPosition(0,0,1)
model:SetModel(path)
end```
Archived author: Thiaz • Posted: 2022-05-09T00:49:46.953000+00:00
Original source
by default it seems to be 0,0,0 so it's either your XML/Lua that is fucked up or your model has a bad camera position
Archived author: Bench • Posted: 2022-05-09T00:50:25.106000+00:00
Original source
It's the stock mount page, it's a stock model, I don't *think* I have any XML/Lua that would be touching it