Thread Tools Display Modes
05-28-16, 04:56 PM   #1
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
AnimationGroup:Finish()

Will this call OnFinish function set by Animation:SetScript('OnFinish', Fn) instantly if SetLooping is 'NONE' ?

All the docs say the current looping, but if there is no looping i'm hoping it calls OnFinish script instantly.
  Reply With Quote
05-28-16, 05:44 PM   #2
syncrow
A Flamescale Wyrmkin
 
syncrow's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 149
Originally Posted by galvin View Post
Will this call OnFinish function set by Animation:SetScript('OnFinish', Fn) instantly if SetLooping is 'NONE' ?

All the docs say the current looping, but if there is no looping i'm hoping it calls OnFinish script instantly.
By saying instantly, i guess you mean upon finishing the animation within its AnimationGroup?? Then, yes!
__________________
  Reply With Quote
05-28-16, 07:23 PM   #3
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
No i mean the animation stops and the script gets called before it finishes.
if this doesn't work then I'll need to write code to handle it my self instead.

Basically I want to fast forward to the end without having to wait for it to finish.
  Reply With Quote
05-28-16, 08:15 PM   #4
syncrow
A Flamescale Wyrmkin
 
syncrow's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 149
Originally Posted by galvin View Post
No i mean the animation stops and the script gets called before it finishes.
if this doesn't work then I'll need to write code to handle it my self instead.

Basically I want to fast forward to the end without having to wait for it to finish.
  • You could run a parallel "ghost" animation with 0.1 less duration and trigger it's OnFinished function.
  • You could also use the "OnPlay" widget instead, which triggers immediately after starting the animation...

But i cannot really help you without knowing what you wanna do...
__________________

Last edited by syncrow : 05-28-16 at 08:18 PM.
  Reply With Quote
05-28-16, 10:27 PM   #5
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
You pretty much answered my question, thanks
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » AnimationGroup:Finish()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off