Help me with LUA animation

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");

Don’t shotgun-blast all the available help channels at once, that’s like yelling and irritates people. Step through them softly.

http://www.catb.org/~esr/faqs/smart-questions.html#forum

Crosspost for reference

Don´t spam everywhere. Maybe you don´t have other things to do in life, but don´t waste people time.

http://www.catb.org/~esr/faqs/smart-questions.html#forum

Thank You friend .

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.