Hi,
I’am working on addon, and I want make delay between animation loop.
Like: talk -> 3sec delay ->talk 3sec delay
This is a code I have:
local frame = CreateFrame("Frame", "QCP" ,QCQuestTitleFrame)
frame:SetPoint("CENTER", -30, 60, "TOP");
frame:SetWidth(700);
frame:SetHeight(700);
frame:SetAlpha(1);
frame:SetFrameStrata("DIALOG");
local model = CreateFrame("PlayerModel", "QCP", QCQuestTitleFrame);
model:SetFrameStrata("DIALOG");
model:SetUnit("TARGET");
model:ClearModel();
model:SetPortraitZoom(0.3);
model:SetPosition(-1.6,0,0);
model:SetScale(0.8);
model:SetFacing(-(math.pi / -26))
model:SetAlpha(1);
model:SetScript("OnAnimStarted", function() model:SetAnimation(60); end);
model:SetScript("OnAnimFinished", function() model:SetAnimation(60); end);
model:SetAllPoints(frame);
model:RegisterEvent("PLAYER_TARGET_CHANGED");